Skip to content

Tab2Space

Convert tab characters to a number of spaces

Declaration

Source position: strutils.pp line 176

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

Description

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

Errors

None.

See also

Name Description
DelChars Delete all occurrences of a given character from a string.
DelSpace Delete all occurrences of a space from a string.
DelSpace1 Reduces sequences of space characters to 1 space character.
DupeString Creates and concatenates N copies of a string
ExtractWord Extract the N-th word out of a string.
FindPart Search for a substring in a string, using wildcards.
StuffString Replace part of a string with another string.