Optimized representation of a case-sensitive string, as used by localization keys. 更多...
#include <TextKey.h>
Public 成员函数 | |
| FORCEINLINE const TCHAR * | GetChars () const |
| Get the underlying chars buffer this text key represents | |
| FORCEINLINE bool | IsEmpty () const |
| 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 | SerializeDiscardHash (FStructuredArchiveSlot Slot) |
| 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) | |
静态 Public 成员函数 | |
| static void | CompactDataStructures () |
| Compact any slack within the internal table | |
| static void | TearDown () |
| Do not use any FTextKey or FTextId after calling this | |
友元 | |
| FORCEINLINE uint32 | GetTypeHash (const FTextKey &A) |
| Get the hash of this text key | |
| FORCEINLINE bool | operator!= (const FTextKey &A, const FTextKey &B) |
| Compare for inequality | |
| FORCEINLINE bool | operator== (const FTextKey &A, const FTextKey &B) |
| Compare for equality | |
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.