FStringFormatter::Format

Format the specified string using the specified arguments.

Windows
MacOS
Linux

References

Module

Core

Header

/Engine/Source/Runtime/Core/Public/Misc/StringFormatter.h

Include

#include "Misc/StringFormatter.h"

Syntax

FString Format
(
    const TCHAR * InExpression,
    const TArray< FStringFormatArg > & InArgs
) const

Remarks

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

Returns

A string containing the formatted text

Parameters

Parameter

Description

InExpression

A string representing the format expression

InArgs

An array of ordered arguments that match the tokens specified in InExpression

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