![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <TextHistory.h>
Inheritance diagram for FTextHistory:Static Public Member Functions | |
| static bool | StaticShouldReadFromBuffer (const TCHAR *Buffer) |
Protected Member Functions | |
| virtual bool | CanUpdateDisplayString () |
| virtual void | UpdateDisplayString ()=0 |
| void | MarkDisplayStringOutOfDate () |
| void | MarkDisplayStringUpToDate () |
Base interface class for all FText history types
|
default |
|
virtualdefault |
|
delete |
Disallow copying
|
inlinefinaloverridevirtual |
Implements IRefCountedObject.
|
pure virtual |
Build the display string for the invariant culture
Implemented in FTextHistory_Base, FTextHistory_NamedFormat, FTextHistory_OrderedFormat, FTextHistory_ArgumentDataFormat, FTextHistory_AsNumber, FTextHistory_AsPercent, FTextHistory_AsCurrency, FTextHistory_AsDate, FTextHistory_AsTime, FTextHistory_AsDateTime, FTextHistory_Transform, FTextHistory_StringTableEntry, and FTextHistory_TextGenerator.
True if "UpdateDisplayString" might do something if called, or False if it would be redundant
Reimplemented in FTextHistory_Base.
|
finaloverridevirtual |
Get the global history revision associated with this text instance.
Implements ITextData.
|
inlinevirtual |
Get any historic text format data from this history
Reimplemented in FTextHistory_NamedFormat, FTextHistory_OrderedFormat, FTextHistory_ArgumentDataFormat, and FTextHistory_Transform.
|
inlinevirtual |
Get any historic numeric format data from this history
Reimplemented in FTextHistory_AsNumber, FTextHistory_AsPercent, and FTextHistory_Transform.
|
finaloverridevirtual |
Get the local history revision associated with this text instance.
Implements ITextData.
|
inlineoverridevirtual |
Get the shared display string (if any).
Implements ITextData.
Reimplemented in FTextHistory_Base, and FTextHistory_StringTableEntry.
|
inlinefinaloverridevirtual |
Get a mutable reference to the history associated with this text instance (used when loading/saving text).
Implements ITextData.
Implements IRefCountedObject.
|
inlineoverridevirtual |
Get the source string for this text.
Implements ITextData.
Reimplemented in FTextHistory_Base, and FTextHistory_StringTableEntry.
|
inlinefinaloverridevirtual |
Get the history associated with this text instance.
Implements ITextData.
Returns the ID of the shared display string (if any).
Reimplemented in FTextHistory_Base, FTextHistory_Generated, and FTextHistory_StringTableEntry.
|
pure virtual |
Get the type of this history
Implemented in FTextHistory_Base, FTextHistory_NamedFormat, FTextHistory_OrderedFormat, FTextHistory_ArgumentDataFormat, FTextHistory_AsNumber, FTextHistory_AsPercent, FTextHistory_AsCurrency, FTextHistory_AsDate, FTextHistory_AsTime, FTextHistory_AsDateTime, FTextHistory_Transform, FTextHistory_StringTableEntry, and FTextHistory_TextGenerator.
|
pure virtual |
Check whether this history is considered identical to the other history, based on the comparison flags provided.
Implemented in FTextHistory_Base, FTextHistory_NamedFormat, FTextHistory_OrderedFormat, FTextHistory_ArgumentDataFormat, FTextHistory_FormatNumber, FTextHistory_AsDate, FTextHistory_AsTime, FTextHistory_AsDateTime, FTextHistory_Transform, FTextHistory_StringTableEntry, and FTextHistory_TextGenerator.
|
protected |
Mark the history revisions as out-of-date
|
protected |
Mark the history revisions as up-to-date
|
delete |
|
inlinevirtual |
Attempt to parse this text history from the given stream of text.
| Buffer | The buffer of text to read from. |
| TextNamespace | An optional namespace to use when parsing texts that use LOCTEXT (default is an empty namespace). |
| PackageNamespace | The package namespace of the containing object (if loading for a property - see TextNamespaceUtil::GetPackageNamespace). |
| OutDisplayString | The display string pointer to potentially fill in (depending on the history type). |
Implements IRefCountedObject.
|
pure virtual |
Serializes the history to/from a structured archive slot
Implemented in FTextHistory_Base, FTextHistory_Generated, FTextHistory_NamedFormat, FTextHistory_OrderedFormat, FTextHistory_ArgumentDataFormat, FTextHistory_FormatNumber, FTextHistory_AsNumber, FTextHistory_AsPercent, FTextHistory_AsCurrency, FTextHistory_AsDate, FTextHistory_AsTime, FTextHistory_AsDateTime, FTextHistory_Transform, FTextHistory_StringTableEntry, and FTextHistory_TextGenerator.
Check the given stream of text to see if it looks like something this class could process in via ReadFromBuffer.
Update the display string when the history is out-of-date
Implemented in FTextHistory_Base, FTextHistory_Generated, and FTextHistory_StringTableEntry.
| void FTextHistory::UpdateDisplayStringIfOutOfDate | ( | ) |
Update the display string if the history is out-of-date
|
inlinevirtual |
Write this text history to a stream of text
| Buffer | The buffer of text to write to. |
| DisplayString | The display string associated with the text being written |
| bStripPackageNamespace | True to strip the package namespace from the written NSLOCTEXT value (eg, when saving cooked data) |