5#include "Containers/Array.h"
6#include "Containers/Map.h"
7#include "Containers/UnrealString.h"
9#include "Misc/AssertionMacros.h"
10#include "Misc/ExpressionParserTypes.h"
11#include "Templates/UnrealTemplate.h"
12#include "Templates/ValueOrError.h"
15template<
typename KeyType,
typename ValueType,
typename SetAllocator ,
typename KeyFuncs >
class TMap;
25
26
27
28
29
30 FString Format(
const TCHAR* InExpression,
const TMap<FString, FStringFormatArg>& InArgs)
const
32 auto Result = FormatInternal(InExpression, InArgs,
false);
33 if (
ensure(Result.IsValid()))
35 return MoveTemp(Result.GetValue());
42
43
44
45
46
47 FString Format(
const TCHAR* InExpression,
const TArray<FStringFormatArg>& InArgs)
const
49 auto Result = FormatInternal(InExpression, InArgs,
false);
50 if (
ensure(Result.IsValid()))
52 return MoveTemp(Result.GetValue());
59
60
61
62
63
66 return FormatInternal(InExpression, InArgs,
true);
70
71
72
73
74
77 return FormatInternal(InExpression, InArgs,
true);
#define ensure( InExpression)