14static const char * DefaultIndentCString =
" ";
15static const uint32_t DefaultIndentCStringByteCount = 4u;
16static const uint32_t DefaultIndentEffectiveSpaceCount = 4u;
54 return _String[ByteIndex];
151 constexpr size_t Alignment = 1 << 11;
152 return (RequestedBytes + (Alignment - 1)) & ~(Alignment - 1);
245 Construct(
Other._String._String._Begin,
Other.ByteLen(),
Other._String.GetAllocator());
251 , _AllocatedBytes(
Other._AllocatedBytes)
253 Other._AllocatedBytes = 0;
260 if (_String.IsFilled())
262 size_t ByteLength = ByteLen();
263 UTF8Char*
Memory = (
UTF8Char*)_String.GetAllocator().Reallocate((
void*)_String._String._Begin, ByteLength + 1);
266 _String._String.Reset();
274 String.GetAllocator() = _String.GetAllocator();
286 EnsureAllocated(ByteLen + 1u);
287 memcpy(
const_cast<UTF8Char*
>(_String._String._Begin),
Other._String._String._Begin, ByteLen + 1u);
290 _String._String._End = (
UTF8Char*)_String._String._Begin + ByteLen;
291 _String.GetAllocator() =
Other._String.GetAllocator();
299 _AllocatedBytes =
Other._AllocatedBytes;
300 Other._AllocatedBytes = 0;
310 EnsureAllocated(ByteLen + 1u);
318 _String._String._End = (
UTF8Char*)_String._String._Begin;
325 EnsureAllocated(ByteLen() + 2);
358 EnsureAllocated(ByteLen() + ByteLength + 1);
364 _String._String._End += ByteLength;
373 EnsureAllocated(ByteLen() + ByteSize + 1);
379 _String._String._End =
NewEnd;
400 _String._String._End = _String._String._Begin +
NewLength;
437 _String._String._End = _String._String._Begin +
NewLength;
444 if (_String._String.IsFilled() && _String._String._End[-1] ==
Ch)
446 ((
UTF8Char*)(--_String._String._End))[0] = 0;
527 if ((*
CStr !=
' ') && (*
CStr !=
'\t') && (*
CStr !=
'\r'))
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
#define ULANG_FORCEINLINE
Definition Common.h:188
#define ULANG_SILENCE_SECURITY_WARNING_END
Definition Common.h:136
#define ULANG_SILENCE_SECURITY_WARNING_START
Definition Common.h:133
#define ULANG_ASSERTF(expr, format,...)
Definition Common.h:290
memcpy(InputBufferBase, BinkBlocksData, BinkBlocksSize)
Definition UTF8StringView.h:15
const UTF8Char * _Begin
Points to first byte.
Definition UTF8StringView.h:19
ULANG_FORCEINLINE int32_t InputByteIdxToDirectIdx(int32_t InIdx) const
Definition UTF8StringView.h:372
ULANG_FORCEINLINE bool InputByteIdxSpan(int32_t &InOutIdx, int32_t &InOutSpan) const
Definition UTF8StringView.h:392
ULANG_FORCEINLINE UTF8Char LastByte() const
Definition UTF8StringView.h:59
const UTF8Char * _End
Points to the byte after the last byte.
Definition UTF8StringView.h:20
ULANG_FORCEINLINE int32_t ByteLen() const
Definition UTF8StringView.h:35
Definition UTF8StringBuilder.h:24
void Reset()
Definition UTF8StringBuilder.h:41
void EnsureAllocatedExtra(size_t ExtraBytes)
Definition UTF8StringBuilder.h:42
TUTF8StringBuilder & operator=(const TUTF8StringBuilder &Other)
Definition UTF8StringBuilder.h:281
TUTF8StringBuilder & TrimEnd(UTF8Char Ch)
Definition UTF8StringBuilder.h:442
ULANG_FORCEINLINE bool operator!=(const CUTF8StringView &StringView) const
Definition UTF8StringBuilder.h:71
StringType CopyToString() const
Definition UTF8StringBuilder.h:87
TUTF8StringBuilder & Append(UTF8Char Char)
Definition UTF8StringBuilder.h:323
ULANG_FORCEINLINE bool IsEmpty() const
Definition UTF8StringBuilder.h:48
TUTF8StringBuilder(const CUTF8StringView &StringView, AllocatorArgsType &&... AllocatorArgs)
Definition UTF8StringBuilder.h:211
TUTF8StringBuilder(const TUTF8StringBuilder &Other)
Definition UTF8StringBuilder.h:242
TUTF8StringBuilder & AppendFormat(const char *NullTerminatedFormat, FormatterArgsType &&... FormatterArgs)
int32_t LineIndentEditor(int32_t Idx=0, int32_t SpanCount=-1, int32_t SpaceCount=DefaultIndentEffectiveSpaceCount)
Definition UTF8StringBuilder.h:452
TUTF8StringBuilder(AllocatorArgsType &&... AllocatorArgs, const char *NullTerminatedFormat, FormatterArgsType &&... FormatterArgs)
ULANG_FORCEINLINE const UTF8Char & operator[](int32_t ByteIndex) const
Definition UTF8StringBuilder.h:52
ULANG_FORCEINLINE bool InputByteIdxSpan(int32_t &InOutIdx, int32_t &InOutSpan) const
Definition UTF8StringBuilder.h:142
ULANG_FORCEINLINE int32_t InputByteIdxToDirectIdx(int32_t InIdx) const
Definition UTF8StringBuilder.h:141
ULANG_FORCEINLINE const CUTF8StringView & ToStringView() const
Definition UTF8StringBuilder.h:82
TUTF8StringBuilder & operator=(TUTF8StringBuilder &&Other)
Definition UTF8StringBuilder.h:296
TUTF8StringBuilder(uint32_t ReserveBytes=0)
Definition UTF8StringBuilder.h:31
ULANG_FORCEINLINE bool operator==(const TUTF8String< OtherAllocatorType, OtherAllocatorArgsType... > &Other) const
Definition UTF8StringBuilder.h:67
UTF8Char * AppendBuffer(size_t ByteSize)
Definition UTF8StringBuilder.h:371
~TUTF8StringBuilder()
Definition UTF8StringBuilder.h:39
ULANG_FORCEINLINE const char * operator*() const
Definition UTF8StringBuilder.h:84
TUTF8StringBuilder(const char *NullTerminatedString, AllocatorArgsType &&... AllocatorArgs)
Definition UTF8StringBuilder.h:204
TUTF8StringBuilder & ReplaceRange(SIdxRange ToBeReplaced, const CUTF8StringView &Replacement)
Definition UTF8StringBuilder.h:389
ULANG_FORCEINLINE bool operator!=(const TUTF8StringBuilder< OtherAllocatorType, OtherAllocatorArgsType... > &Other) const
Definition UTF8StringBuilder.h:65
ULANG_FORCEINLINE const char * AsCString() const
Definition UTF8StringBuilder.h:83
ULANG_FORCEINLINE bool operator!=(const TUTF8String< OtherAllocatorType, OtherAllocatorArgsType... > &Other) const
Definition UTF8StringBuilder.h:69
ULANG_FORCEINLINE bool operator==(const TUTF8StringBuilder< OtherAllocatorType, OtherAllocatorArgsType... > &Other) const
Definition UTF8StringBuilder.h:63
TUTF8StringBuilder & ReplaceAll(const UTF8Char Search, const UTF8Char Replacement)
Definition UTF8StringBuilder.h:413
StringType MoveToString()
Definition UTF8StringBuilder.h:257
TUTF8StringBuilder & ReplaceAt(int32_t Index, const UTF8Char Replacement)
Definition UTF8StringBuilder.h:405
ULANG_FORCEINLINE UTF8Char LastByte() const
Definition UTF8StringBuilder.h:58
ULANG_FORCEINLINE int32_t ByteLen() const
Definition UTF8StringBuilder.h:47
ULANG_FORCEINLINE bool IsFilled() const
Definition UTF8StringBuilder.h:49
TUTF8StringBuilder & InsertAt(int32_t Index, const CUTF8StringView &StringToInsert)
Definition UTF8StringBuilder.h:426
TUTF8StringBuilder & operator=(const CUTF8StringView &StringView)
Definition UTF8StringBuilder.h:305
TUTF8StringBuilder & Append(const CUTF8StringView &String)
Definition UTF8StringBuilder.h:334
TUTF8String< AllocatorType, AllocatorArgsType... > StringType
Definition UTF8StringBuilder.h:27
ULANG_FORCEINLINE bool operator==(const CUTF8StringView &StringView) const
Definition UTF8StringBuilder.h:70
TUTF8StringBuilder(TUTF8StringBuilder &&Other)
Definition UTF8StringBuilder.h:249
ULANG_FORCEINLINE bool IsEmpty() const
Definition UTF8String.h:47
ULANG_FORCEINLINE const CUTF8StringView & ToStringView() const
Definition UTF8String.h:96
ULANG_FORCEINLINE bool IsFilled() const
Definition UTF8String.h:48
ULANG_FORCEINLINE const char * AsCString() const
Definition UTF8String.h:50
ULANG_FORCEINLINE int32_t ByteLen() const
Definition UTF8String.h:46
uLang::CUTF8StringView CUTF8StringView
Definition VstNode.h:51
Definition VVMEngineEnvironment.h:23
@ NoInit
Definition Common.h:375
uint8_t UTF8Char
UTF-8 octet.
Definition Unicode.h:20
ULANG_FORCEINLINE T && ForwardArg(typename TRemoveReference< T >::Type &Obj)
Definition References.h:115
ULANG_FORCEINLINE TRemoveReference< T >::Type && Move(T &&Obj)
Definition References.h:86
U16 Index
Definition radfft.cpp:71