FUTF8ToTCHAR_Convert::Convert

Converts the UTF-8 string to UTF-16 or UTF-32.

Choose your operating system:

Windows

macOS

Linux

References

Module

Core

Header

/Engine/Source/Runtime/Core/Public/Containers/StringConv.h

Include

#include "Containers/StringConv.h"

Syntax

template<typename SrcBufferType, std::enable_if_t< FPlatformString::IsCharEncodingCompatibleWith< SrcBufferType, FromType >()> *>
static void Convert
(
    ToType * Dest,
    const int32 DestLen,
    const SrcBufferType * Source,
    const int32 SourceLen
)

Remarks

Converts the UTF-8 string to UTF-16 or UTF-32.

Parameters

Parameter

Description

Dest

The destination buffer of the converted string.

DestLen

The length of the destination buffer.

Source

The source string to convert.

SourceLen

The length of the source string.