Navigation
API > API/Runtime > API/Runtime/Core
A snapshot of an FText at a point in time that can be used to detect changes in the FText, including live-culture changes
| Name | FTextSnapshot |
| Type | class |
| Header File | /Engine/Source/Runtime/Core/Public/Internationalization/Text.h |
| Include Path | #include "Internationalization/Text.h" |
Syntax
class FTextSnapshot
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
| Internationalization/Text.h | |||
FTextSnapshot
(
const FText& InText |
Internationalization/Text.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| Flags | uint32 | Flags with various information on what sort of FText we took a snapshot of | Internationalization/Text.h | |
| GlobalHistoryRevision | uint16 | Global revision index of the text when we took the snapshot, or 0 if there was no history | Internationalization/Text.h | |
| LocalHistoryRevision | uint16 | Local revision index of the text when we took the snapshot, or 0 if there was no history | Internationalization/Text.h | |
| LocalizedStringPtr | FTextConstDisplayStringPtr | The localized string of the text when we took the snapshot (if any) | Internationalization/Text.h | |
| TextDataPtr | TRefCountPtr< ITextData > | A pointer to the text data for the FText that we took a snapshot of (used for an efficient pointer compare) | Internationalization/Text.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
bool IdenticalTo
(
const FText& InText |
Check to see whether the given text is identical to the text this snapshot was made from | Internationalization/Text.h | |
bool IsDisplayStringEqualTo
(
const FText& InText |
Check to see whether the display string of the given text is identical to the display string this snapshot was made from | Internationalization/Text.h |
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static uint16 GetGlobalHistoryRevisionForText
(
const FText& InText |
Get adjusted global history revision used for comparison | Internationalization/Text.h | |
static uint16 GetLocalHistoryRevisionForText
(
const FText& InText |
Get adjusted local history revision used for comparison | Internationalization/Text.h |