Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/Internationalization
References
| Module | Core |
| Header | /Engine/Source/Runtime/Core/Public/Internationalization/Text.h |
| Include | #include "Internationalization/Text.h" |
Syntax
class FText
Constructors
Functions
| Type | Name | Description | |
|---|---|---|---|
| FText | AsCultureInvariant
(
FText Text |
Generate a culture invariant FText representing the passed in FText | |
| FText | AsCultureInvariant
(
FString&& String |
Generate a culture invariant FText representing the passed in string | |
| FText | AsCultureInvariant
(
const FString& String |
Generate a culture invariant FText representing the passed in string | |
| FText | AsCurrency
(
int16 Val, |
A dynamically sizeable string. | |
| FText | AsCurrency
(
long Val, |
A dynamically sizeable string. | |
| FText | AsCurrency
(
uint64 Val, |
A dynamically sizeable string. | |
| FText | AsCurrency
(
uint32 Val, |
A dynamically sizeable string. | |
| FText | AsCurrency
(
uint16 Val, |
A dynamically sizeable string. | |
| FText | AsCurrency
(
uint8 Val, |
A dynamically sizeable string. | |
| FText | AsCurrency
(
int64 Val, |
A dynamically sizeable string. | |
| FText | AsCurrency
(
int32 Val, |
A dynamically sizeable string. | |
| FText | AsCurrency
(
int8 Val, |
A dynamically sizeable string. | |
| FText | AsCurrency
(
double Val, |
A dynamically sizeable string. | |
| 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, |
A dynamically sizeable string. | |
| FText | AsDateTime
(
const FDateTime& DateTime, |
A dynamically sizeable string. | |
| 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
(
float Val, |
Generate an FText that represents the passed number in the current culture | |
| FText | AsNumber
(
double Val, |
Generate an FText that represents the passed number in the current culture | |
| FText | AsNumber
(
int16 Val, |
Generate an FText that represents the passed number in the current culture | |
| FText | AsNumber
(
int32 Val, |
Generate an FText that represents the passed number in the current culture | |
| FText | AsNumber
(
int64 Val, |
Generate an FText that represents the passed number in the current culture | |
| FText | AsNumber
(
uint8 Val, |
Generate an FText that represents the passed number in the current culture | |
| FText | AsNumber
(
uint16 Val, |
Generate an FText that represents the passed number in the current culture | |
| FText | AsNumber
(
int8 Val, |
Generate an FText that represents the passed number in the current culture | |
| FText | AsNumber
(
uint64 Val, |
Generate an FText that represents the passed number in the current culture | |
| FText | AsNumber
(
long Val, |
Generate an FText that represents the passed number in the current culture | |
| FText | AsNumber
(
uint32 Val, |
Generate an FText that represents the passed number in the current culture | |
| FText | AsPercent
(
float Val, |
Generate an FText that represents the passed number as a percentage in the current culture | |
| FText | AsPercent
(
double Val, |
Generate an FText that represents the passed number as a percentage in the current culture | |
| FText | AsTime
(
const FDateTime& DateTime, |
A dynamically sizeable string. | |
| FText | AsTimespan
(
const FTimespan& Timespan, |
||
| 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 | Attempts to find an existing FText using the representation found in the loc tables for the specified namespace and key | ||
| 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 values as ordered arguments within the given format pattern | |
| 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 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
(
const FString& String |
Generate an FText representing the passed in string | |
| FText | FromString
(
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 | Join an arbitrary list of formattable values together, separated by the given delimiter | ||
| FText | 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 |
Enums
| Type | Name | Description | |
|---|---|---|---|
| EInitToEmptyString | Special constructor used to create StaticEmptyText without also allocating a history object |
Typedefs
| Name | Description |
|---|---|
| FCreateTextGeneratorDelegate |