![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <StringFormatter.h>
Public Member Functions | |
| CORE_API | TStringFormatter () |
| TString< CharType > | Format (const CharType *InExpression, const TMap< TString< CharType >, FStringFormatArg > &InArgs) const |
| TString< CharType > | Format (const CharType *InExpression, const TArray< FStringFormatArg > &InArgs) const |
| TValueOrError< TString< CharType >, FExpressionError > | FormatStrict (const CharType *InExpression, const TMap< TString< CharType >, FStringFormatArg > &InArgs) const |
| TValueOrError< TString< CharType >, FExpressionError > | FormatStrict (const CharType *InExpression, const TArray< FStringFormatArg > &InArgs) const |
A string formatter is responsible for formatting string patterns using a set of named, or ordered arguments
| TStringFormatter< CharType >::TStringFormatter | ( | ) |
|
inline |
Format the specified string using the specified arguments. Replaces instances of {0} with indices from the given array matching the index specified in the token
| InExpression | A string representing the format expression |
| InArgs | An array of ordered arguments that match the tokens specified in InExpression |
|
inline |
Format the specified string using the specified arguments. Replaces instances of { Argument } with keys in the map matching 'Argument'
| InExpression | A string representing the format expression |
| InArgs | A map of named arguments that match the tokens specified in InExpression |
|
inline |
Format the specified string using the specified arguments. Replaces instances of {0} with indices from the given array matching the index specified in the token
| InExpression | A string representing the format expression |
| InArgs | An array of ordered arguments that match the tokens specified in InExpression |
|
inline |
Format the specified string using the specified arguments. Replaces instances of { Argument } with keys in the map matching 'Argument'
| InExpression | A string representing the format expression |
| InArgs | A map of named arguments that match the tokens specified in InExpression |