FTCHARToUTF8_Convert::Convert

Converts a Source string into UTF8 and stores it in Dest.

Windows
MacOS
Linux

References

Module

Core

Header

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

Include

#include "Containers/StringConv.h"

Syntax

template<typename DestBufferType>
static int32 Convert
(
    DestBufferType Dest,
    int32 DestLen,
    const TCHAR * Source,
    int32 SourceLen
)

Remarks

Converts a Source string into UTF8 and stores it in Dest.

Returns

The number of bytes written to Dest, up to DestLen, or -1 if the entire Source string could did not fit in DestLen bytes.

Parameters

Parameter

Description

Dest

The destination output iterator. Usually ANSICHAR*, but you can supply your own output iterator. One can determine the number of characters written by checking the offset of Dest when the function returns.

DestLen

The length of the destination buffer.

Source

The source string to convert.

SourceLen

The length of the source string.

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