Navigation
API > API/Runtime > API/Runtime/uLangCore > API/Runtime/uLangCore/uLang > API/Runtime/uLangCore/uLang/Common > API/Runtime/uLangCore/uLang/Common/Text
References
| Module | uLangCore |
| Header | /Engine/Source/Runtime/Solaris/uLangCore/Public/uLang/Common/Text/UTF8String.h |
| Include | #include "uLang/Common/Text/UTF8String.h" |
| Source | /Engine/Source/Runtime/Solaris/uLangCore/Public/uLang/Common/Text/UTF8StringBuilder.h |
Syntax
template<class AllocatorType, typename... AllocatorArgsType>
class TUTF8StringBuilder
Remarks
String builder class Used to modify and manipulate strings
Constructors
| Type | Name | Description | |
|---|---|---|---|
TUTF8StringBuilder
(
uint32_t ReserveBytes |
|||
TUTF8StringBuilder
(
const TUTF8StringBuilder& Other |
|||
TUTF8StringBuilder
(
TUTF8StringBuilder&& Other |
|||
TUTF8StringBuilder
(
const char* NullTerminatedString, |
TUTF8StringBuilder Inline Methods. | ||
TUTF8StringBuilder
(
const CUTF8StringView& StringView, |
|||
TUTF8StringBuilder
(
AllocatorArgsType&&... AllocatorArgs, |
|||
| ULANG_SILENCE_SECURITY_WARNING_STARTULANG_FORCEINLINE | TUTF8StringBuilder
(
AllocatorArgsType&&... AllocatorArgs, |
Destructors
| Type | Name | Description | |
|---|---|---|---|
Functions
| Type | Name | Description | |
|---|---|---|---|
| TUTF8StringBuilder & | Append
(
const CUTF8StringView& String |
||
| TUTF8StringBuilder & | |||
| UTF8Char * | AppendBuffer
(
size_t ByteSize |
Grows the String for serialization purposes the _End pointer is moved to the end of the buffer, expecting serialization to occur immediately following this call. | |
| TUTF8StringBuilder & | AppendFormat
(
const char* NullTerminatedFormat, |
||
| ULANG_SILENCE_SECURITY_WARNING_STARTTUTF8StringBuilder< AllocatorType, AllocatorArgsType... > & | AppendFormat
(
const char* NullTerminatedFormat, |
||
| ULANG_FORCEINLINE const char * | AsCString () |
||
| ULANG_FORCEINLINE int32_t | ByteLen () |
||
| StringType | CopyToString () |
||
| void | EnsureAllocatedExtra
(
size_t ExtraBytes |
||
| ULANG_FORCEINLINE bool | InputByteIdxSpan
(
int32_t& InOutIdx, |
||
| ULANG_FORCEINLINE int32_t | InputByteIdxToDirectIdx
(
int32_t InIdx |
||
| TUTF8StringBuilder & | InsertAt
(
int32_t Index, |
Inserts a string before the given index. | |
| ULANG_FORCEINLINE bool | IsEmpty () |
||
| ULANG_FORCEINLINE bool | IsFilled () |
||
| ULANG_FORCEINLINEUTF8Char | LastByte () |
||
| int32_t | LineIndentEditor
(
int32_t Idx, |
Indents rows/lines by specified SpaceCount_ spaces from Idx_ over the span of `Count_ characters using behavior similar to the MS Visual Studio editor. |
|
| StringType | MoveToString () |
||
| TUTF8StringBuilder & | ReplaceAll
(
const UTF8Char Search, |
Replace all instances of a single character with the provided character | |
| TUTF8StringBuilder & | Replace a single character with the provided character | ||
| TUTF8StringBuilder & | ReplaceRange
(
SIdxRange ToBeReplaced, |
Replace a range of bytes with the provided replacement string | |
| void | Reset () |
||
| ULANG_FORCEINLINE const CUTF8StringView & | ToStringView () |
||
| TUTF8StringBuilder & | Trim character from end if exists |
Operators
| Type | Name | Description | |
|---|---|---|---|
| ULANG_FORCEINLINE | |||
| ULANG_FORCEINLINE bool | operator!=
(
const CUTF8StringView& StringView |
||
| ULANG_FORCEINLINE bool | operator!=
(
const TUTF8String< OtherAllocatorType, OtherAllocatorArgsType... >& Other |
||
| ULANG_FORCEINLINE bool | operator!=
(
const TUTF8StringBuilder< OtherAllocatorType, OtherAllocatorArgsType... >& Other |
||
| ULANG_FORCEINLINE const char * | operator* () |
||
| ULANG_FORCEINLINE const UTF8Char & | operator[]
(
int32_t ByteIndex |
||
| TUTF8StringBuilder & | operator=
(
const CUTF8StringView& StringView |
||
| TUTF8StringBuilder & | operator=
(
const TUTF8StringBuilder& Other |
||
| TUTF8StringBuilder & | operator=
(
TUTF8StringBuilder&& Other |
||
| ULANG_FORCEINLINE bool | operator==
(
const CUTF8StringView& StringView |
||
| ULANG_FORCEINLINE bool | operator==
(
const TUTF8String< OtherAllocatorType, OtherAllocatorArgsType... >& Other |
||
| ULANG_FORCEINLINE bool | operator==
(
const TUTF8StringBuilder< OtherAllocatorType, OtherAllocatorArgsType... >& Other |
Typedefs
| Name | Description |
|---|---|
| StringType |