Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/Internationalization
References
Module | Core |
Header | /Engine/Source/Runtime/Core/Public/Internationalization/TextKey.h |
Include | #include "Internationalization/TextKey.h" |
Syntax
class FTextKey
Remarks
Optimized representation of a case-sensitive string, as used by localization keys. This references an entry within a internal table to avoid memory duplication, as well as offering optimized comparison and hashing performance.
Constructors
Type | Name | Description | |
---|---|---|---|
![]() |
FTextKey () |
||
![]() |
FTextKey
(
FStringView InStr |
||
![]() |
|||
![]() |
Functions
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
void | AppendString
(
FStringBuilderBase& Out |
|
![]() ![]() |
void | AppendString
(
FString& Out |
|
![]() ![]() |
void | Compact any slack within the internal table | |
![]() ![]() |
const TCHAR * | GetChars () |
Get the underlying chars buffer this text key represents |
![]() ![]() |
bool | IsEmpty () |
Is this text key empty? |
![]() |
void | Reset () |
Reset this text key to be empty |
![]() |
void | SerializeAsString
(
FArchive& Ar |
Serialize this text key as if it were an FString |
![]() |
void | SerializeAsString
(
FStructuredArchiveSlot Slot |
Serialize this text key as if it were an FString |
![]() |
void | SerializeDiscardHash
(
FArchive& Ar |
Serialize this text key including its hash value, discarding the hash on load (to upgrade from an older hashing algorithm) |
![]() |
void | Serialize this text key including its hash value, discarding the hash on load (to upgrade from an older hashing algorithm) | |
![]() |
void | SerializeWithHash
(
FArchive& Ar |
Serialize this text key including its hash value (this method is sensitive to hashing algorithm changes, so only use it for generated files that can be rebuilt from another source) |
![]() |
void | SerializeWithHash
(
FStructuredArchiveSlot Slot |
Serialize this text key including its hash value (this method is sensitive to hashing algorithm changes, so only use it for generated files that can be rebuilt from another source) |
![]() ![]() |
void | TearDown () |
Do not use any FTextKey or FTextId after calling this |
![]() ![]() |
void | ||
![]() ![]() |
FString | ToString () |
Convert this text key back to its string representation |
![]() ![]() |
void | ToString
(
FStringBuilderBase& Out |