Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/TStringFormatter
Overloads
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
TValueOrError< TString< CharType >, FExpressionError > FormatStrict
(
const CharType* InExpression, |
Format the specified string using the specified arguments. | Misc/StringFormatter.h | |
TValueOrError< TString< CharType >, FExpressionError > FormatStrict
(
const CharType* InExpression, |
Format the specified string using the specified arguments. | Misc/StringFormatter.h |
FormatStrict(const CharType *, const TMap< TString< CharType >, FStringFormatArg > &)
Description
Format the specified string using the specified arguments. Replaces instances of { Argument } with keys in the map matching 'Argument'
| Name | FormatStrict |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/Misc/StringFormatter.h |
| Include Path | #include "Misc/StringFormatter.h" |
TValueOrError < TString< CharType >, FExpressionError > FormatStrict
(
const CharType * InExpression,
const TMap < TString< CharType >, FStringFormatArg > & InArgs
) const
A string containing the formatted text, or an error where InExpression is ill-formed, or contains undefined arguments
Parameters
| Name | Remarks |
|---|---|
| InExpression | A string representing the format expression |
| InArgs | A map of named arguments that match the tokens specified in InExpression |
FormatStrict(const CharType *, const TArray< FStringFormatArg > &)
Description
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
| Name | FormatStrict |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/Misc/StringFormatter.h |
| Include Path | #include "Misc/StringFormatter.h" |
TValueOrError < TString< CharType >, FExpressionError > FormatStrict
(
const CharType * InExpression,
const TArray < FStringFormatArg > & InArgs
) const
A string containing the formatted text, or an error where InExpression is ill-formed, or contains undefined arguments
Parameters
| Name | Remarks |
|---|---|
| InExpression | A string representing the format expression |
| InArgs | An array of ordered arguments that match the tokens specified in InExpression |