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

A text formatter is responsible for formatting text patterns using a set of named or ordered arguments. 更多...

#include <TextFormatter.h>

Public 类型

typedef TFunction< TSharedPtr< ITextFormatArgumentModifier >(const FTextFormatString &, FTextFormatPatternDefinitionConstRef)> FCompileTextArgumentModifierFuncPtr
 Callback function used to compile an argument modifier. 更多...
 

静态 Public 成员函数

static void ArgumentValueToFormattedString (const FFormatArgumentValue &InValue, const FPrivateTextFormatArguments &InFormatArgs, FString &OutResult)
 Incredibly low-level version of FFormatArgumentValue::ToFormattedString. 更多...
 
static FString Format (const FTextFormat &InFmt, const FPrivateTextFormatArguments &InFormatArgs)
 Incredibly low-level version of format. 更多...
 
static FText Format (FTextFormat &&InFmt, FFormatNamedArguments &&InArguments, const bool bInRebuildText, const bool bInRebuildAsSource)
 Low-level versions of Format. 更多...
 
static FString FormatStr (const FTextFormat &InFmt, const FFormatNamedArguments &InArguments, const bool bInRebuildText, const bool bInRebuildAsSource)
 Low-level version of Format that returns a string. 更多...
 
static FTextFormatter & Get ()
 Singleton access
 

详细描述

A text formatter is responsible for formatting text patterns using a set of named or ordered arguments.

成员类型定义说明

◆ FCompileTextArgumentModifierFuncPtr

Callback function used to compile an argument modifier.

Takes an argument modifier string and pattern definition, then returns the compiled result.

成员函数说明

◆ ArgumentValueToFormattedString()

static void FTextFormatter::ArgumentValueToFormattedString ( const FFormatArgumentValue &  InValue,
const FPrivateTextFormatArguments &  InFormatArgs,
FString &  OutResult 
)
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

◆ Format() [1/2]

static FString FTextFormatter::Format ( const FTextFormat &  InFmt,
const FPrivateTextFormatArguments &  InFormatArgs 
)
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

◆ Format() [2/2]

static FText FTextFormatter::Format ( FTextFormat &&  InFmt,
FFormatNamedArguments &&  InArguments,
const bool  bInRebuildText,
const bool  bInRebuildAsSource 
)
static

Low-level versions of Format.

You probably want to use FText::Format(...) rather than call these directly

◆ FormatStr()

static FString FTextFormatter::FormatStr ( const FTextFormat &  InFmt,
const FFormatNamedArguments &  InArguments,
const bool  bInRebuildText,
const bool  bInRebuildAsSource 
)
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


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