Ark Server API (ASA) - Wiki
Loading...
Searching...
No Matches
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 , std::enable_if_t< TIsCharEncodingCompatibleWith_V< SrcBufferType, FromType > > * = nullptr>
static FORCEINLINE void Convert (ToType *Dest, const int32 DestLen, const SrcBufferType *Source, const int32 SourceLen)
 
static FORCEINLINE void Convert (ToType *Dest, const int32 DestLen, const LegacyFromType *Source, const int32 SourceLen)
 
template<typename SrcBufferType , std::enable_if_t< TIsCharEncodingCompatibleWith_V< SrcBufferType, FromType > > * = nullptr>
static int32 ConvertedLength (const SrcBufferType *Source, const int32 SourceLen)
 
static int32 ConvertedLength (const LegacyFromType *Source, const int32 SourceLen)
 

Detailed Description

Definition at line 336 of file StringConv.h.

Member Typedef Documentation

◆ FromType

◆ LegacyFromType

Definition at line 339 of file StringConv.h.

◆ ToType

Definition at line 341 of file StringConv.h.

Member Function Documentation

◆ Convert() [1/2]

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

Definition at line 359 of file StringConv.h.

◆ Convert() [2/2]

template<typename SrcBufferType , std::enable_if_t< TIsCharEncodingCompatibleWith_V< SrcBufferType, FromType > > * = nullptr>
static FORCEINLINE 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.

Definition at line 355 of file StringConv.h.

◆ ConvertedLength() [1/2]

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

Definition at line 379 of file StringConv.h.

◆ ConvertedLength() [2/2]

template<typename SrcBufferType , std::enable_if_t< TIsCharEncodingCompatibleWith_V< SrcBufferType, FromType > > * = nullptr>
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.

Definition at line 375 of file StringConv.h.


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