Navigation
API > API/Runtime > API/Runtime/uLangCore
String builder class Used to modify and manipulate strings
| Name | TUTF8StringBuilder |
| Type | class |
| Header File | /Engine/Source/Runtime/Solaris/uLangCore/Public/uLang/Common/Text/UTF8String.h |
| Include Path | #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
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
TUTF8StringBuilder
(
AllocatorArgsType&&... AllocatorArgs, |
uLang/Common/Text/UTF8StringBuilder.h | ||
TUTF8StringBuilder
(
uint32_t ReserveBytes |
uLang/Common/Text/UTF8StringBuilder.h | ||
TUTF8StringBuilder
(
const TUTF8StringBuilder& Other |
uLang/Common/Text/UTF8StringBuilder.h | ||
TUTF8StringBuilder
(
TUTF8StringBuilder&& Other |
uLang/Common/Text/UTF8StringBuilder.h | ||
TUTF8StringBuilder
(
const char* NullTerminatedString, |
TUTF8StringBuilder Inline Methods. | uLang/Common/Text/UTF8StringBuilder.h | |
TUTF8StringBuilder
(
const CUTF8StringView& StringView, |
uLang/Common/Text/UTF8StringBuilder.h | ||
ULANG_SILENCE_SECURITY_WARNING_STARTULANG_FORCEINLINE TUTF8StringBuilder
(
AllocatorArgsType&&... AllocatorArgs, |
uLang/Common/Text/UTF8StringBuilder.h |
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
~TUTF8StringBuilder() |
uLang/Common/Text/UTF8StringBuilder.h |
Typedefs
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| StringType | TUTF8String< AllocatorType, AllocatorArgsType... > | uLang/Common/Text/UTF8StringBuilder.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| _AllocatedBytes | uint32_t | How many bytes we have actually allocated. | uLang/Common/Text/UTF8StringBuilder.h | |
| _String | StringType | We repurpose a TUTF8String to store the string. | uLang/Common/Text/UTF8StringBuilder.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
TUTF8StringBuilder & Append
(
const CUTF8StringView& String |
uLang/Common/Text/UTF8StringBuilder.h | ||
TUTF8StringBuilder & Append
(
UTF8Char Char |
uLang/Common/Text/UTF8StringBuilder.h | ||
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. | uLang/Common/Text/UTF8StringBuilder.h | |
TUTF8StringBuilder & AppendFormat
(
const char* NullTerminatedFormat, |
uLang/Common/Text/UTF8StringBuilder.h | ||
ULANG_SILENCE_SECURITY_WARNING_STARTTUTF8StringBuilder< AllocatorType, AllocatorArgsType... > & AppendFormat
(
const char* NullTerminatedFormat, |
uLang/Common/Text/UTF8StringBuilder.h | ||
ULANG_FORCEINLINE const char * AsCString() |
uLang/Common/Text/UTF8StringBuilder.h | ||
ULANG_FORCEINLINE int32_t ByteLen() |
uLang/Common/Text/UTF8StringBuilder.h | ||
StringType CopyToString() |
uLang/Common/Text/UTF8StringBuilder.h | ||
void EnsureAllocatedExtra
(
size_t ExtraBytes |
uLang/Common/Text/UTF8StringBuilder.h | ||
TUTF8StringBuilder & InsertAt
(
int32_t Index, |
Inserts a string before the given index. | uLang/Common/Text/UTF8StringBuilder.h | |
ULANG_FORCEINLINE bool IsEmpty() |
uLang/Common/Text/UTF8StringBuilder.h | ||
ULANG_FORCEINLINE bool IsFilled() |
uLang/Common/Text/UTF8StringBuilder.h | ||
ULANG_FORCEINLINEUTF8Char LastByte() |
uLang/Common/Text/UTF8StringBuilder.h | ||
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. |
uLang/Common/Text/UTF8StringBuilder.h | |
StringType MoveToString() |
uLang/Common/Text/UTF8StringBuilder.h | ||
TUTF8StringBuilder & ReplaceAll
(
const UTF8Char Search, |
Replace all instances of a single character with the provided character | uLang/Common/Text/UTF8StringBuilder.h | |
TUTF8StringBuilder & ReplaceAt
(
int32_t Index, |
Replace a single character with the provided character | uLang/Common/Text/UTF8StringBuilder.h | |
TUTF8StringBuilder & ReplaceRange
(
SIdxRange ToBeReplaced, |
Replace a range of bytes with the provided replacement string | uLang/Common/Text/UTF8StringBuilder.h | |
void Reset() |
uLang/Common/Text/UTF8StringBuilder.h | ||
ULANG_FORCEINLINE const CUTF8StringView & ToStringView() |
uLang/Common/Text/UTF8StringBuilder.h | ||
TUTF8StringBuilder & TrimEnd
(
UTF8Char Ch |
Trim character from end if exists | uLang/Common/Text/UTF8StringBuilder.h |
Protected
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
ULANG_FORCEINLINE bool InputByteIdxSpan
(
int32_t& InOutIdx, |
uLang/Common/Text/UTF8StringBuilder.h | ||
ULANG_FORCEINLINE int32_t InputByteIdxToDirectIdx
(
int32_t InIdx |
uLang/Common/Text/UTF8StringBuilder.h |
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static ULANG_FORCEINLINE size_t CalculateBytesToAllocate
(
size_t RequestedBytes |
Compute allocation size from requested size. | uLang/Common/Text/UTF8StringBuilder.h |
Operators
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
ULANG_FORCEINLINE operator const CUTF8StringView &() |
uLang/Common/Text/UTF8StringBuilder.h | ||
ULANG_FORCEINLINE bool operator!=
(
const TUTF8StringBuilder< OtherAllocatorType, OtherAllocatorArgsType... >& Other |
uLang/Common/Text/UTF8StringBuilder.h | ||
ULANG_FORCEINLINE bool operator!=
(
const TUTF8String< OtherAllocatorType, OtherAllocatorArgsType... >& Other |
uLang/Common/Text/UTF8StringBuilder.h | ||
ULANG_FORCEINLINE bool operator!=
(
const CUTF8StringView& StringView |
uLang/Common/Text/UTF8StringBuilder.h | ||
ULANG_FORCEINLINE const char * operator*() |
uLang/Common/Text/UTF8StringBuilder.h | ||
ULANG_FORCEINLINE const UTF8Char & operator[]
(
int32_t ByteIndex |
uLang/Common/Text/UTF8StringBuilder.h | ||
TUTF8StringBuilder & operator=
(
const CUTF8StringView& StringView |
uLang/Common/Text/UTF8StringBuilder.h | ||
TUTF8StringBuilder & operator=
(
const TUTF8StringBuilder& Other |
uLang/Common/Text/UTF8StringBuilder.h | ||
TUTF8StringBuilder & operator=
(
TUTF8StringBuilder&& Other |
uLang/Common/Text/UTF8StringBuilder.h | ||
ULANG_FORCEINLINE bool operator==
(
const CUTF8StringView& StringView |
uLang/Common/Text/UTF8StringBuilder.h | ||
ULANG_FORCEINLINE bool operator==
(
const TUTF8String< OtherAllocatorType, OtherAllocatorArgsType... >& Other |
uLang/Common/Text/UTF8StringBuilder.h | ||
ULANG_FORCEINLINE bool operator==
(
const TUTF8StringBuilder< OtherAllocatorType, OtherAllocatorArgsType... >& Other |
uLang/Common/Text/UTF8StringBuilder.h |