UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
FUTF8ToTCHAR_Convert Class Reference

#include <StringConv.h>

Public Types

typedef ANSICHAR LegacyFromType
 
typedef UTF8CHAR FromType
 
typedef TCHAR ToType
 

Static Public Member Functions

template<typename SrcBufferType >
static UE_FORCEINLINE_HINT void Convert (ToType *Dest, const int32 DestLen, const SrcBufferType *Source, const int32 SourceLen)
 
static UE_FORCEINLINE_HINT void Convert (ToType *Dest, const int32 DestLen, const LegacyFromType *Source, const int32 SourceLen)
 
template<typename SrcBufferType >
static int32 ConvertedLength (const SrcBufferType *Source, const int32 SourceLen)
 
static int32 ConvertedLength (const LegacyFromType *Source, const int32 SourceLen)
 

Member Typedef Documentation

◆ FromType

◆ LegacyFromType

◆ ToType

Member Function Documentation

◆ Convert() [1/2]

static UE_FORCEINLINE_HINT void FUTF8ToTCHAR_Convert::Convert ( ToType Dest,
const int32  DestLen,
const LegacyFromType Source,
const int32  SourceLen 
)
inlinestatic

◆ Convert() [2/2]

template<typename SrcBufferType >
static UE_FORCEINLINE_HINT void FUTF8ToTCHAR_Convert::Convert ( ToType Dest,
const int32  DestLen,
const SrcBufferType Source,
const int32  SourceLen 
)
inlinestatic

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

Parameters
DestThe destination buffer of the converted string.
DestLenThe length of the destination buffer.
SourceThe source string to convert.
SourceLenThe length of the source string.

◆ ConvertedLength() [1/2]

static int32 FUTF8ToTCHAR_Convert::ConvertedLength ( const LegacyFromType Source,
const int32  SourceLen 
)
inlinestatic

◆ ConvertedLength() [2/2]

template<typename SrcBufferType >
static int32 FUTF8ToTCHAR_Convert::ConvertedLength ( const SrcBufferType Source,
const int32  SourceLen 
)
inlinestatic

Determines the length of the converted string.

Parameters
Sourcestring to read and determine amount of TCHARs to represent
SourceLenLength of source string; we will not read past this amount, even if the characters tell us to
Returns
The length of the string in UTF-16 or UTF-32 characters.

The documentation for this class was generated from the following file: