engine
 
载入中...
搜索中...
未找到
Public 成员函数 | 静态 Protected 成员函数 | 所有成员列表
ITextFormatArgumentModifier类 参考abstract

Interface for a format argument modifier. 更多...

#include <ITextFormatArgumentModifier.h>

Public 成员函数

virtual void EstimateLength (int32 &OutLength, bool &OutUsesFormatArgs) const =0
 Quickly estimate the length of text that this argument modifier will likely inject into the string when evaluated
 
virtual void Evaluate (const FFormatArgumentValue &InValue, const FPrivateTextFormatArguments &InFormatArgs, FString &OutResult) const =0
 Given the argument, evaluate the result and append it to OutResult
 
virtual void GetFormatArgumentNames (TArray< FString > &OutArgumentNames) const =0
 Get any argument names that are used by this argument modifier (for cases where the modifier itself uses format strings)
 
virtual bool Validate (const FCultureRef &InCulture, TArray< FString > &OutValidationErrors) const =0
 Validate the argument modifier is valid based on the rules of the given culture
 
virtual ~ITextFormatArgumentModifier ()
 Virtual destructor
 

静态 Protected 成员函数

static CORE_API bool ParseKeyValueArgs (const FTextFormatString &InArgsString, TMap< FTextFormatString, FTextFormatString > &OutArgKeyValues, const TCHAR InValueSeparator=TEXT('='), const TCHAR InArgSeparator=TEXT(','))
 Utility helper to parse out a list of key->value pair arguments. 更多...
 
static CORE_API bool ParseValueArgs (const FTextFormatString &InArgsString, TArray< FTextFormatString > &OutArgValues, const TCHAR InArgSeparator=TEXT(','))
 Utility helper to parse out a list of value arguments. 更多...
 

详细描述

Interface for a format argument modifier.

成员函数说明

◆ ParseKeyValueArgs()

static CORE_API bool ITextFormatArgumentModifier::ParseKeyValueArgs ( const FTextFormatString &  InArgsString,
TMap< FTextFormatString, FTextFormatString > &  OutArgKeyValues,
const TCHAR  InValueSeparator = TEXT('='),
const TCHAR  InArgSeparator = TEXT(',') 
)
staticprotected

Utility helper to parse out a list of key->value pair arguments.

The keys are assumed to only contain valid identifier characters, and the values may be optionally quoted (parsed strings are sub-string references to within the source args string)

◆ ParseValueArgs()

static CORE_API bool ITextFormatArgumentModifier::ParseValueArgs ( const FTextFormatString &  InArgsString,
TArray< FTextFormatString > &  OutArgValues,
const TCHAR  InArgSeparator = TEXT(',') 
)
staticprotected

Utility helper to parse out a list of value arguments.

The values may be optionally quoted (parsed strings are sub-string references to within the source args string)


该类的文档由以下文件生成: