Sign in Join
FPDoc Onlineexperiment

Tab2Space function

In unit StrUtils

Convert tab characters to a number of spaces.

Declaration

pascal
function Tab2Space(const S: string; Numb: Byte): string

Arguments

S

String in which to replace tab characters.

Numb

Number of spaces to replace tab characters with.

Function result

String with tab characters replaced.

Description

Tab2Space returns a copy of S with all tab characters (ASCII character 9) converted to Numb spaces.

Errors

None.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.