ITextFormatArgumentModifier

Interface for a format argument modifier.

References

Module

Core

Header

/Engine/Source/Runtime/Core/Public/Internationalization/ITextFormatArgumentModifier.h

Include

#include "Internationalization/ITextFormatArgumentModifier.h"

Syntax

class ITextFormatArgumentModifier

Remarks

Interface for a format argument modifier.

Destructors

Name Description

Public function Virtual

~ITextFormatArgumentModifier()

Virtual destructor

Functions

Name Description

Public function Const

void

 

EstimateLength

(
    int32& OutLength,
    bool& OutUsesFormatArgs
)

Quickly estimate the length of text that this argument modifier will likely inject into the string when evaluated

Public function Const

void

 

Evaluate

(
    const FFormatArgumentValue& InValu...,
    const FPrivateTextFormatArguments&...,
    FString& OutResult
)

Given the argument, evaluate the result and append it to OutResult

Public function Const

void

 

GetFormatArgumentNames

(
    TArray< FString >& OutArgumentName...
)

Get any argument names that are used by this argument modifier (for cases where the modifier itself uses format strings)

Protected function Static

bool

 

ParseKeyValueArgs

(
    const FTextFormatString& InArgsStr...,
    TSortedMap< FTextFormatString, FTex...,
    const TCHAR InValueSeparator,
    const TCHAR InArgSeparator
)

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

Protected function Static

bool

 

ParseValueArgs

(
    const FTextFormatString& InArgsStr...,
    TArray< FTextFormatString >& OutAr...,
    const TCHAR InArgSeparator
)

Utility helper to parse out a list of value arguments.

Public function Const

bool

 

Validate

(
    const FCultureRef& InCulture,
    TArray< FString >& OutValidationEr...
)

Validate the argument modifier is valid based on the rules of the given culture

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Cancel