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 FTextFormat
Remarks
Cached compiled expression used by the text formatter. The compiled expression will automatically update if the display string is changed, and is safe to be used as a function-level static. See TextFormatter.cpp for the definition.
Constructors
Type | Name | Description | |
---|---|---|---|
![]() |
FTextFormat () |
Construct an instance using an empty FText. | |
![]() |
FTextFormat
(
const FText& InText |
Construct an instance from an FText. | |
![]() |
FTextFormat
(
const FText& InText, |
Construct an instance from an FText and custom format pattern definition. |
Functions
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
FTextFormat | FromString
(
const FString& InString |
Construct an instance from an FString. |
![]() ![]() |
FTextFormat | FromString
(
FString&& InString |
Construct an instance from an FString. |
![]() ![]() |
FTextFormat | FromString
(
const FString& InString, |
Construct an instance from an FString and custom format pattern definition. |
![]() ![]() |
FTextFormat | FromString
(
FString&& InString, |
Construct an instance from an FString. |
![]() ![]() |
EExpressionType | Get the type of expression currently compiled. | |
![]() ![]() |
void | GetFormatArgumentNames
(
TArray< FString >& OutArgumentNames |
Append the names of any arguments to the given array. |
![]() ![]() |
FTextFormatPatternDefinitionConstRef | Get the format pattern definition being used. | |
![]() ![]() |
const FString & | Get the source string that we're holding. | |
![]() ![]() |
FText | Get the source text that we're holding. If we're holding a string then we'll construct a new text. | |
![]() ![]() |
bool | IdenticalTo
(
const FTextFormat& Other, |
Check whether this instance is considered identical to the other instance, based on the comparison flags provided. |
![]() ![]() |
bool | IsValid () |
Test to see whether this instance contains valid compiled data. |
![]() ![]() |
bool | ValidatePattern
(
const FCulturePtr& InCulture, |
Validate the format pattern is valid based on the rules of the given culture (or null to use the current language). |
Enums
Type | Name | Description | |
---|---|---|---|
![]() |
EExpressionType |