UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
TextHistory.h File Reference

Go to the source code of this file.

Classes

class  FTextHistory
 
class  FTextHistory_Base
 
class  FTextHistory_Generated
 
class  FTextHistory_NamedFormat
 
class  FTextHistory_OrderedFormat
 
class  FTextHistory_ArgumentDataFormat
 
class  FTextHistory_FormatNumber
 
class  FTextHistory_AsNumber
 
class  FTextHistory_AsPercent
 
class  FTextHistory_AsCurrency
 
class  FTextHistory_AsDate
 
class  FTextHistory_AsTime
 
class  FTextHistory_AsDateTime
 
class  FTextHistory_Transform
 
class  FTextHistory_StringTableEntry
 
class  FTextHistory_TextGenerator
 

Namespaces

namespace  TextStringificationUtil
 

Macros

#define OVERRIDE_TEXT_HISTORY_STRINGIFICATION
 
#define LOC_DEFINE_REGION
 
#define TEXT_STRINGIFICATION_FUNC_MODIFY_BUFFER_AND_VALIDATE(Func, ...)
 
#define TEXT_STRINGIFICATION_PEEK_MARKER(T)   TextStringificationUtil::PeekMarker(Buffer, T, UE_ARRAY_COUNT(T) - 1)
 
#define TEXT_STRINGIFICATION_PEEK_INSENSITIVE_MARKER(T)   TextStringificationUtil::PeekInsensitiveMarker(Buffer, T, UE_ARRAY_COUNT(T) - 1)
 
#define TEXT_STRINGIFICATION_SKIP_MARKER(T)   TEXT_STRINGIFICATION_FUNC_MODIFY_BUFFER_AND_VALIDATE(TextStringificationUtil::SkipMarker, T, UE_ARRAY_COUNT(T) - 1)
 
#define TEXT_STRINGIFICATION_SKIP_INSENSITIVE_MARKER(T)   TEXT_STRINGIFICATION_FUNC_MODIFY_BUFFER_AND_VALIDATE(TextStringificationUtil::SkipInsensitiveMarker, T, UE_ARRAY_COUNT(T) - 1)
 
#define TEXT_STRINGIFICATION_SKIP_MARKER_LEN(T)   Buffer += (UE_ARRAY_COUNT(T) - 1)
 
#define TEXT_STRINGIFICATION_SKIP_WHITESPACE()   TEXT_STRINGIFICATION_FUNC_MODIFY_BUFFER_AND_VALIDATE(TextStringificationUtil::SkipWhitespace)
 
#define TEXT_STRINGIFICATION_SKIP_WHITESPACE_TO_CHAR(C)   TEXT_STRINGIFICATION_FUNC_MODIFY_BUFFER_AND_VALIDATE(TextStringificationUtil::SkipWhitespaceToCharacter, TEXT(C))
 
#define TEXT_STRINGIFICATION_SKIP_WHITESPACE_AND_CHAR(C)   TEXT_STRINGIFICATION_FUNC_MODIFY_BUFFER_AND_VALIDATE(TextStringificationUtil::SkipWhitespaceAndCharacter, TEXT(C))
 
#define TEXT_STRINGIFICATION_READ_NUMBER(V)   TEXT_STRINGIFICATION_FUNC_MODIFY_BUFFER_AND_VALIDATE(TextStringificationUtil::ReadNumberFromBuffer, V)
 
#define TEXT_STRINGIFICATION_READ_ALNUM(V)   TEXT_STRINGIFICATION_FUNC_MODIFY_BUFFER_AND_VALIDATE(TextStringificationUtil::ReadAlnumFromBuffer, V)
 
#define TEXT_STRINGIFICATION_READ_QUOTED_STRING(V)   TEXT_STRINGIFICATION_FUNC_MODIFY_BUFFER_AND_VALIDATE(TextStringificationUtil::ReadQuotedStringFromBuffer, V)
 
#define TEXT_STRINGIFICATION_READ_SCOPED_ENUM(S, V)   TEXT_STRINGIFICATION_FUNC_MODIFY_BUFFER_AND_VALIDATE(TextStringificationUtil::ReadScopedEnumFromBuffer, S, V)
 

Enumerations

enum class  ETextHistoryType : int8 {
  None = -1 , Base = 0 , NamedFormat , OrderedFormat ,
  ArgumentFormat , AsNumber , AsPercent , AsCurrency ,
  AsDate , AsTime , AsDateTime , Transform ,
  StringTableEntry , TextGenerator
}
 

Functions

bool TextStringificationUtil::PeekMarker (const TCHAR *Buffer, const TCHAR *InMarker, const int32 InMarkerLen)
 
bool TextStringificationUtil::PeekInsensitiveMarker (const TCHAR *Buffer, const TCHAR *InMarker, const int32 InMarkerLen)
 
const TCHARTextStringificationUtil::SkipMarker (const TCHAR *Buffer, const TCHAR *InMarker, const int32 InMarkerLen)
 
const TCHARTextStringificationUtil::SkipInsensitiveMarker (const TCHAR *Buffer, const TCHAR *InMarker, const int32 InMarkerLen)
 
const TCHARTextStringificationUtil::SkipWhitespace (const TCHAR *Buffer)
 
const TCHARTextStringificationUtil::SkipWhitespaceToCharacter (const TCHAR *Buffer, const TCHAR InChar)
 
const TCHARTextStringificationUtil::SkipWhitespaceAndCharacter (const TCHAR *Buffer, const TCHAR InChar)
 
const TCHARTextStringificationUtil::ReadNumberFromBuffer (const TCHAR *Buffer, FFormatArgumentValue &OutValue)
 
const TCHARTextStringificationUtil::ReadAlnumFromBuffer (const TCHAR *Buffer, FString &OutValue)
 
const TCHARTextStringificationUtil::ReadQuotedStringFromBuffer (const TCHAR *Buffer, FString &OutStr)
 
template<typename T >
const TCHARTextStringificationUtil::ReadScopedEnumFromBuffer (const TCHAR *Buffer, const FString &Scope, T &OutValue)
 
template<typename T >
void TextStringificationUtil::WriteScopedEnumToBuffer (FString &Buffer, const TCHAR *Scope, const T Value)
 

Variables

const autoTextStringificationUtil::TextMarker = TEXT("TEXT")
 
const autoTextStringificationUtil::InvTextMarker = TEXT("INVTEXT")
 
const autoTextStringificationUtil::NsLocTextMarker = TEXT("NSLOCTEXT")
 
const autoTextStringificationUtil::LocTextMarker = TEXT("LOCTEXT")
 
const autoTextStringificationUtil::LocTableMarker = TEXT("LOCTABLE")
 
const autoTextStringificationUtil::LocGenNumberMarker = TEXT("LOCGEN_NUMBER")
 
const autoTextStringificationUtil::LocGenPercentMarker = TEXT("LOCGEN_PERCENT")
 
const autoTextStringificationUtil::LocGenCurrencyMarker = TEXT("LOCGEN_CURRENCY")
 
const autoTextStringificationUtil::LocGenDateMarker = TEXT("LOCGEN_DATE")
 
const autoTextStringificationUtil::LocGenTimeMarker = TEXT("LOCGEN_TIME")
 
const autoTextStringificationUtil::LocGenDateTimeMarker = TEXT("LOCGEN_DATETIME")
 
const autoTextStringificationUtil::LocGenToLowerMarker = TEXT("LOCGEN_TOLOWER")
 
const autoTextStringificationUtil::LocGenToUpperMarker = TEXT("LOCGEN_TOUPPER")
 
const autoTextStringificationUtil::LocGenFormatOrderedMarker = TEXT("LOCGEN_FORMAT_ORDERED")
 
const autoTextStringificationUtil::LocGenFormatNamedMarker = TEXT("LOCGEN_FORMAT_NAMED")
 
const autoTextStringificationUtil::GroupedSuffix = TEXT("_GROUPED")
 
const autoTextStringificationUtil::UngroupedSuffix = TEXT("_UNGROUPED")
 
const autoTextStringificationUtil::CustomSuffix = TEXT("_CUSTOM")
 
const autoTextStringificationUtil::UtcSuffix = TEXT("_UTC")
 
const autoTextStringificationUtil::LocalSuffix = TEXT("_LOCAL")
 

Macro Definition Documentation

◆ LOC_DEFINE_REGION

#define LOC_DEFINE_REGION

◆ OVERRIDE_TEXT_HISTORY_STRINGIFICATION

#define OVERRIDE_TEXT_HISTORY_STRINGIFICATION
Value:
static bool StaticShouldReadFromBuffer(const TCHAR* Buffer); \
virtual bool ShouldReadFromBuffer(const TCHAR* Buffer) const override { return StaticShouldReadFromBuffer(Buffer); } \
virtual const TCHAR* ReadFromBuffer(const TCHAR* Buffer, const TCHAR* TextNamespace, const TCHAR* PackageNamespace) override; \
virtual bool WriteToBuffer(FString& Buffer, const bool bStripPackageNamespace) const override;
FPlatformTypes::TCHAR TCHAR
Either ANSICHAR or WIDECHAR, depending on whether the platform supports wide characters or the requir...
Definition Platform.h:1135
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127

◆ TEXT_STRINGIFICATION_FUNC_MODIFY_BUFFER_AND_VALIDATE

#define TEXT_STRINGIFICATION_FUNC_MODIFY_BUFFER_AND_VALIDATE (   Func,
  ... 
)
Value:
Buffer = Func(Buffer, ##__VA_ARGS__); \
if (!Buffer) { return nullptr; }

◆ TEXT_STRINGIFICATION_PEEK_INSENSITIVE_MARKER

#define TEXT_STRINGIFICATION_PEEK_INSENSITIVE_MARKER (   T)    TextStringificationUtil::PeekInsensitiveMarker(Buffer, T, UE_ARRAY_COUNT(T) - 1)

◆ TEXT_STRINGIFICATION_PEEK_MARKER

#define TEXT_STRINGIFICATION_PEEK_MARKER (   T)    TextStringificationUtil::PeekMarker(Buffer, T, UE_ARRAY_COUNT(T) - 1)

◆ TEXT_STRINGIFICATION_READ_ALNUM

◆ TEXT_STRINGIFICATION_READ_NUMBER

◆ TEXT_STRINGIFICATION_READ_QUOTED_STRING

◆ TEXT_STRINGIFICATION_READ_SCOPED_ENUM

◆ TEXT_STRINGIFICATION_SKIP_INSENSITIVE_MARKER

◆ TEXT_STRINGIFICATION_SKIP_MARKER

◆ TEXT_STRINGIFICATION_SKIP_MARKER_LEN

#define TEXT_STRINGIFICATION_SKIP_MARKER_LEN (   T)    Buffer += (UE_ARRAY_COUNT(T) - 1)

◆ TEXT_STRINGIFICATION_SKIP_WHITESPACE

◆ TEXT_STRINGIFICATION_SKIP_WHITESPACE_AND_CHAR

◆ TEXT_STRINGIFICATION_SKIP_WHITESPACE_TO_CHAR

Enumeration Type Documentation

◆ ETextHistoryType

enum class ETextHistoryType : int8
strong
Enumerator
None 
Base 
NamedFormat 
OrderedFormat 
ArgumentFormat 
AsNumber 
AsPercent 
AsCurrency 
AsDate 
AsTime 
AsDateTime 
Transform 
StringTableEntry 
TextGenerator