FText::AsCurrency

A dynamically sizeable string.

Choose your operating system:

Windows

macOS

Linux

References

Module

Core

Header

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

Include

#include "Internationalization/Text.h"

Source

/Engine/Source/Runtime/Core/Private/Internationalization/Text.cpp

Syntax

static FText AsCurrency
(
    uint16 Val,
    const FString & CurrencyCode,
    const FNumberFormattingOptions *const Options,
    const FCulturePtr & TargetCulture
)

Remarks

A dynamically sizeable string. When dealing with UTF-8 literals, the following advice is recommended:

  • Do not use the u8"..." prefix (gives the wrong array type until C++20).

  • Use UTF8TEXT("...") for array literals (type is const UTF8CHAR[n]).

  • Use "..."_U8SV for string view literals (type is FUtf8StringView).

  • Use or escape sequences rather than to specify Unicode code points.

See Also