[Overview][Constants][Types][Procedures and functions][Index] Reference for unit 'LazStringUtils' (#lazutils)

TabsToSpaces

Converts all Tab characters in a string to the specified number of space characters.

Declaration

Source position: lazstringutils.pas line 55

function TabsToSpaces(

  const s: string;

  TabWidth: Integer;

  UseUTF8: Boolean

):string;

Arguments

s

  

String with values updated in the routine.

TabWidth

  

Number of space characters to use for each Tab character.

UseUTF8

  

True when UTF-8 codepoints are used to convert individual characters.

Function result

String value after converting Tab characters to spaces.

Description

Replaces all Tab characters (#9) in S with the specified number of space characters.


Version 4.0 Generated 2025-05-03 Home