![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include "Internationalization/Text.h"#include "Algo/Transform.h"#include "Containers/AnsiString.h"#include "Containers/Utf8String.h"#include "Misc/Parse.h"#include "UObject/ObjectVersion.h"#include "UObject/DebugSerializationFlags.h"#include "Internationalization/Culture.h"#include "Internationalization/Internationalization.h"#include "Internationalization/ITextGenerator.h"#include "Internationalization/StringTableRegistry.h"#include "Internationalization/TextHistory.h"#include "Misc/Guid.h"#include "Internationalization/TextCache.h"#include "Internationalization/TextChar.h"#include "Internationalization/TextChronoFormatter.h"#include "Internationalization/TextFormatter.h"#include "Internationalization/TextTransformer.h"#include "Internationalization/TextNamespaceUtil.h"#include "Internationalization/FastDecimalFormat.h"#include "Internationalization/TextGeneratorRegistry.h"#include "Serialization/StructuredArchive.h"#include "Serialization/CompactBinaryValue.h"#include "UObject/EditorObjectVersion.h"#include "UObject/UE5ReleaseStreamObjectVersion.h"#include "HAL/PlatformProcess.h"| #define CONDITIONAL_CREATE_TEXT_HISTORY | ( | HistoryClass | ) |
| #define DEF_ASCURRENCY | ( | T | ) | DEF_ASCURRENCY_CAST(T, T) |
| #define DEF_ASCURRENCY_CAST | ( | T1, | |
| T2 | |||
| ) | FText FText::AsCurrency(T1 Val, const FString& CurrencyCode, const FNumberFormattingOptions* const Options, const FCulturePtr& TargetCulture) { return FText::AsCurrencyTemplate<T1, T2>(Val, CurrencyCode, Options, TargetCulture); } |
Generate an FText that represents the passed number as currency in the current culture
| #define DEF_ASNUMBER | ( | T | ) | DEF_ASNUMBER_CAST(T, T) |
| #define DEF_ASNUMBER_CAST | ( | T1, | |
| T2 | |||
| ) | FText FText::AsNumber(T1 Val, const FNumberFormattingOptions* const Options, const FCulturePtr& TargetCulture) { return FText::AsNumberTemplate<T1, T2>(Val, Options, TargetCulture); } |
Generate an FText that represents the passed number in the passed culture
| #define DEF_ASPERCENT | ( | T | ) | DEF_ASPERCENT_CAST(T, T) |
| #define DEF_ASPERCENT_CAST | ( | T1, | |
| T2 | |||
| ) | FText FText::AsPercent(T1 Val, const FNumberFormattingOptions* const Options, const FCulturePtr& TargetCulture) { return FText::AsPercentTemplate<T1, T2>(Val, Options, TargetCulture); } |
Generate an FText that represents the passed number as a percentage in the current culture
| #define ENUM_CASE_FROM_STRING | ( | Enum | ) | if (FCString::Stricmp(Buffer, TEXT(#Enum)) == 0) { OutValue = ETextGender::Enum; return true; } |
| #define ENUM_CASE_FROM_STRING | ( | Enum | ) | if (FCString::Stricmp(Buffer, TEXT(#Enum)) == 0) { OutValue = EDateTimeStyle::Enum; return true; } |
| #define ENUM_CASE_FROM_STRING | ( | Enum | ) | if (FCString::Stricmp(Buffer, TEXT(#Enum)) == 0) { OutValue = ERoundingMode::Enum; return true; } |
| #define LOC_DEFINE_REGION |
| #define LOC_DEFINE_REGION |
| #define LOC_DEFINE_REGION |
| #define LOCTEXT_NAMESPACE "Core.Text" |
| DEFINE_LOG_CATEGORY | ( | LogText | ) |
| uint32 GetTypeHash | ( | const FNumberFormattingOptions & | Key | ) |
Get the hash code to use for the given formatting options
| uint32 GetTypeHash | ( | const FNumberParsingOptions & | Key | ) |
Get the hash code to use for the given parsing options
| void LexFromString | ( | EDateTimeStyle::Type & | OutValue, |
| const TCHAR * | Buffer | ||
| ) |
| void LexFromString | ( | ERoundingMode & | OutValue, |
| const TCHAR * | Buffer | ||
| ) |
| void LexFromString | ( | ETextGender & | OutValue, |
| const TCHAR * | Buffer | ||
| ) |
| const TCHAR * LexToString | ( | EDateTimeStyle::Type | InValue | ) |
| const TCHAR * LexToString | ( | ERoundingMode | InValue | ) |
| const TCHAR * LexToString | ( | ETextGender | InValue | ) |
| bool LexTryParseString | ( | EDateTimeStyle::Type & | OutValue, |
| const TCHAR * | Buffer | ||
| ) |
| bool LexTryParseString | ( | ERoundingMode & | OutValue, |
| const TCHAR * | Buffer | ||
| ) |
| bool LexTryParseString | ( | ETextGender & | OutValue, |
| const TCHAR * | Buffer | ||
| ) |
| FArchive & operator<< | ( | FArchive & | Ar, |
| FNumberParsingOptions & | Value | ||
| ) |
| void operator<< | ( | FStructuredArchive::FSlot | Slot, |
| FFormatArgumentData & | Value | ||
| ) |
| void operator<< | ( | FStructuredArchive::FSlot | Slot, |
| FFormatArgumentValue & | Value | ||
| ) |
| void operator<< | ( | FStructuredArchive::FSlot | Slot, |
| FNumberFormattingOptions & | Value | ||
| ) |