_StringIndentCount

Returns text in string with lines left or right indented once with given character and count

#include "String and File String.au3"
_StringIndentOnce( $sString [, $sIndentString = " " [, $iIndentCount [, $bRightIndent = False ]]] )

parameters

$sString String with text to indent once
$sIndentString String used to indent
$iIndentCount Number of times to indent
$bRightIndent True = Indent right side of text, False = Left side

return value

string value String with indented text

related

_StringIndent, _StringUnindent, _StringTotalUnindent

examples

_StringIndentCount( $SomeText, " ", 3 ) ; Returns the text in $SomeText indented left with 3 spaces

_StringIndentCount( $AnotherText, @TAB, 2, True ) ; Returns the text in $AnotherText indented right with 2 tabs