Navigation
Unreal Engine C++ API Reference > Runtime > Core > Internationalization
References
Module | Core |
Header | /Engine/Source/Runtime/Core/Public/Internationalization/Text.h |
Include | #include "Internationalization/Text.h" |
Syntax
class FText
Constructors
Type | Name | Description | |
---|---|---|---|
FText () |
|||
Functions
Type | Name | Description | |
---|---|---|---|
FText | AsCultureInvariant
(
FText Text |
Generate a culture invariant FText representing the passed in FText | |
FText | AsCultureInvariant
(
FString&& String |
||
FText | AsCultureInvariant
(
FStringView String |
||
FText | AsCultureInvariant
(
const TCHAR* String |
Generate a culture invariant FText representing the passed in string | |
FText | AsCurrency
(
int16 Val, |
||
FText | AsCurrency
(
long Val, |
||
FText | AsCurrency
(
uint64 Val, |
||
FText | AsCurrency
(
uint32 Val, |
||
FText | AsCurrency
(
uint16 Val, |
||
FText | AsCurrency
(
uint8 Val, |
||
FText | AsCurrency
(
int64 Val, |
||
FText | AsCurrency
(
int32 Val, |
||
FText | AsCurrency
(
int8 Val, |
||
FText | AsCurrency
(
double Val, |
||
FText | AsCurrency
(
float Val, |
||
FText | AsCurrencyBase
(
int64 BaseVal, |
Generate an FText that represents the passed number as currency in the current culture. | |
FText | AsDate
(
const FDateTime& DateTime, |
Generate an FText that represents the passed number as a date and/or time in the current culture | |
FText | AsDateTime
(
const FDateTime& DateTime, |
||
FText | AsDateTime
(
const FDateTime& DateTime, |
||
FText | AsLocalizable_Advanced
(
const FTextKey& Namespace, |
=== !! This is an ADVANCED function. | |
FText | AsLocalizable_Advanced
(
const FTextKey& Namespace, |
||
FText | AsLocalizable_Advanced
(
const FTextKey& Namespace, |
||
FText | AsMemory
(
uint64 NumBytes, |
Generate an FText that represents the passed number as a memory size in the current culture | |
FText | AsMemory
(
uint64 NumBytes, |
Generate an FText that represents the passed number as a memory size in the current culture | |
FText | AsNumber
(
long Val, |
||
FText | AsNumber
(
uint64 Val, |
||
FText | AsNumber
(
uint32 Val, |
||
FText | AsNumber
(
uint16 Val, |
||
FText | AsNumber
(
uint8 Val, |
||
FText | AsNumber
(
int64 Val, |
||
FText | AsNumber
(
int32 Val, |
||
FText | AsNumber
(
int16 Val, |
||
FText | AsNumber
(
int8 Val, |
||
FText | AsNumber
(
double Val, |
||
FText | AsNumber
(
float Val, |
Generate an FText that represents the passed number in the current culture | |
FText | AsPercent
(
double Val, |
||
FText | AsPercent
(
float Val, |
Generate an FText that represents the passed number as a percentage in the current culture | |
FText | AsTime
(
const FDateTime& DateTime, |
||
FText | AsTimespan
(
const FTimespan& Timespan, |
||
void | AutoRTFMAssignFromOpenToClosed
(
FText& Closed, |
Safely copies an FText from the open to a closed transaction. | |
FString | Deep build of the source string for this FText, climbing the history hierarchy | ||
FText | Constructs a new FText with the SourceString of the specified text but with the specified namespace and key | ||
int32 | CompareTo
(
const FText& Other, |
||
int32 | CompareToCaseIgnored
(
const FText& Other |
||
bool | EqualTo
(
const FText& Other, |
||
bool | EqualToCaseIgnored
(
const FText& Other |
||
FCreateTextGeneratorDelegate | FindRegisteredTextGenerator
(
FName TypeID |
Returns the text generator factory function registered under the specified name, if any. | |
bool | |||
bool | FindTextInLiveTable_Advanced
(
const FTextKey& Namespace, |
=== !! This is an ADVANCED function. | |
FText | Format
(
FTextFormat Fmt, |
||
FText | Format
(
FTextFormat Fmt, |
Format the given list values as ordered arguments within the given format pattern | |
FText | Format
(
FTextFormat Fmt, |
||
FText | Format
(
FTextFormat Fmt, |
Format the given map of key->value pairs as named arguments within the given format pattern | |
FText | Format
(
FTextFormat Fmt, |
Format the given list of variadic values as ordered arguments within the given format pattern | |
FText | FormatNamed
(
FTextFormat Fmt, |
Format the given list of variadic key->value pairs as named arguments within the given format pattern | |
FText | FormatOrdered
(
FTextFormat Fmt, |
Format the given list of variadic values as ordered arguments within the given format pattern | |
FText | Generate an FText representing the pass name | ||
FText | FromString
(
FString&& String |
||
FText | FromString
(
const FString& String |
Generate an FText representing the passed in string | |
FText | FromStringTable
(
const FName InTableId, |
Attempts to create an FText instance from a string table ID and key (this is the same as the LOCTABLE macro, except this can also work with non-literal string values). | |
FText | FromStringView
(
FStringView InString |
Generate a FText representing the passed string view | |
FText | FromTextGenerator
(
const TSharedRef< ITextGenerator >& TextGenerator |
Produces a custom-generated FText. | |
const FText & | GetEmpty () |
||
void | GetFormatPatternParameters
(
const FTextFormat& Fmt, |
||
FString | Gets the time zone string that represents a non-specific, zero offset, culture invariant time zone. | ||
bool | IdenticalTo
(
const FText& Other, |
Check to see if this FText is identical to the other FText | |
bool | |||
bool | IsEmpty () |
||
bool | |||
bool | |||
bool | |||
bool | IsNumeric () |
||
bool | IsTransient () |
||
bool | IsWhitespace
(
const TCHAR Char |
Check to see if the given character is considered whitespace by the current culture | |
FText | Join an arbitrary list of formattable items together, separated by the given delimiter | ||
FText | |||
FText | Join
(
const FText& Delimiter, |
Join an arbitrary list of formattable values together, separated by the given delimiter | |
void | RegisterTextGenerator
(
FName TypeID |
Registers a standard text generator factory function. | |
void | RegisterTextGenerator
(
FName TypeID, |
Registers a factory function to be used with serialization of text generators within FText. | |
void | Registers a standard text generator factory function. | ||
bool | |||
FText | ToLower () |
Transforms the text to lowercase in a culture correct way. | |
const FString & | ToString () |
||
FText | ToUpper () |
Transforms the text to uppercase in a culture correct way. | |
FText | TrimPreceding
(
const FText& |
Removes any whitespace characters from the start of the text. | |
FText | TrimPrecedingAndTrailing
(
const FText& |
Removes any whitespace characters from the start and end of the text. | |
FText | TrimTrailing
(
const FText& |
Removes any whitespace characters from the end of the text. | |
void | Unregisters a standard text generator factory function. | ||
void | UnregisterTextGenerator
(
FName TypeID |
Unregisters a factory function to be used with serialization of text generators within FText. |
Operators
Classes
Type | Name | Description | |
---|---|---|---|
FSortPredicate |
Typedefs
Name | Description |
---|---|
FCreateTextGeneratorDelegate | |
IntrusiveUnsetOptionalStateType |
Constants
Name | Description |
---|---|
bHasIntrusiveUnsetOptionalState | Start - intrusive TOptional |