Navigation
API > API/Runtime > API/Runtime/uLangCore > API/Runtime/uLangCore/TUTF8StringBuilder
Description
Indents rows/lines by specified SpaceCount_ spaces from Idx_ over the span of Count_ characters using behavior similar to the MS Visual Studio editor. Works on line breaks that are in Unix style \n_ or DOS style `\r\n_.
| Name | LineIndentEditor |
| Type | function |
| Header File | /Engine/Source/Runtime/Solaris/uLangCore/Public/uLang/Common/Text/UTF8StringBuilder.h |
| Include Path | #include "uLang/Common/Text/UTF8StringBuilder.h" |
int32_t LineIndentEditor
(
int32_t Idx,
int32_t SpanCount,
int32_t SpaceCount
)
: number of line breaks over the specified range
Parameters
| Name | Remarks |
|---|---|
| StartIdx - starting index to begin indentation. If negative it indicates index position from end of string - so -1 = last char, -2 = char before last, etc. | |
| SpanCount - Span of characters to indent. If negative it indicates remainder of string after Idx - so -1 = include last, -2 = include char before last, etc. | |
| SpaceCount - number of space characters to indent @notes:Spaces inserted at the beginning of each row.Rows with no non-space characters are not indented.If the range ends just after a line break, the following row is not indented - at least one character on a row must be included for it to be indentedSimilar to Visual Studio editor behavior. |