![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <TextFormatter.h>
Public Types | |
| typedef TFunction< TSharedPtr< ITextFormatArgumentModifier >(const FTextFormatString &, FTextFormatPatternDefinitionConstRef)> | FCompileTextArgumentModifierFuncPtr |
Public Member Functions | |
| CORE_API void | RegisterTextArgumentModifier (const FTextFormatString &InKeyword, FCompileTextArgumentModifierFuncPtr InCompileFunc) |
| CORE_API void | UnregisterTextArgumentModifier (const FTextFormatString &InKeyword) |
| CORE_API FCompileTextArgumentModifierFuncPtr | FindTextArgumentModifier (const FTextFormatString &InKeyword) const |
A text formatter is responsible for formatting text patterns using a set of named or ordered arguments.
| typedef TFunction<TSharedPtr<ITextFormatArgumentModifier>(const FTextFormatString&, FTextFormatPatternDefinitionConstRef)> FTextFormatter::FCompileTextArgumentModifierFuncPtr |
Callback function used to compile an argument modifier. Takes an argument modifier string and pattern definition, then returns the compiled result.
|
static |
Incredibly low-level version of FFormatArgumentValue::ToFormattedString. You should only be calling this if you're implementing a custom argument modifier type that itself needs to convert the argument to a string
| FTextFormatter::FCompileTextArgumentModifierFuncPtr FTextFormatter::FindTextArgumentModifier | ( | const FTextFormatString & | InKeyword | ) | const |
|
static |
Incredibly low-level version of format. You should only be calling this if you're implementing a custom argument modifier type that itself needs to format using the private arguments
|
static |
Low-level versions of Format. You probably want to use FText::Format(...) rather than call these directly
|
static |
|
static |
|
static |
Low-level version of Format that returns a string. This should typically only be used externally when rebuilding the display string for some formatted text
|
static |
|
static |
|
static |
Singleton access
| void FTextFormatter::RegisterTextArgumentModifier | ( | const FTextFormatString & | InKeyword, |
| FCompileTextArgumentModifierFuncPtr | InCompileFunc | ||
| ) |
| void FTextFormatter::UnregisterTextArgumentModifier | ( | const FTextFormatString & | InKeyword | ) |