![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <TextCache.h>
Public Member Functions | |
| FTextCache ()=default | |
| FTextCache (const FTextCache &)=delete | |
| FTextCache & | operator= (const FTextCache &)=delete |
| FText | FindOrCache (const TCHAR *InTextLiteral, const FTextId &InTextId) |
| FText | FindOrCache (FStringView InTextLiteral, const FTextId &InTextId) |
| FText | FindOrCache (FString &&InTextLiteral, const FTextId &InTextId) |
| void | RemoveCache (const FTextId &InTextId) |
| void | RemoveCache (TArrayView< const FTextId > InTextIds) |
| void | RemoveCache (const TSet< FTextId > &InTextIds) |
Static Public Member Functions | |
| static FTextCache & | Get () |
| static void | TearDown () |
Caches FText instances generated via the LOCTEXT macro to avoid repeated constructions
|
default |
|
delete |
Non-copyable
Try and find an existing cached entry for the given data, or construct and cache a new entry if one cannot be found.
| FText FTextCache::FindOrCache | ( | FStringView | InTextLiteral, |
| const FTextId & | InTextId | ||
| ) |
|
static |
Get the singleton instance of the text cache.
|
delete |
Remove any cached entries for the given text IDs.
| void FTextCache::RemoveCache | ( | TArrayView< const FTextId > | InTextIds | ) |
|
static |