Ark Server API (ASA) - Wiki
Loading...
Searching...
No Matches
TUTF16ToUTF32_Convert< InFromType, InToType > Class Template Reference

#include <StringConv.h>

Public Types

typedef InFromType FromType
 
typedef InToType 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)
 
template<typename SrcBufferType , std::enable_if_t< TIsCharEncodingCompatibleWith_V< SrcBufferType, FromType > > * = nullptr>
static int32 ConvertedLength (const SrcBufferType *Source, const int32 SourceLen)
 

Static Private Member Functions

static uint32 CodepointFromUtf16 (const FromType *&SourceString, const uint32 SourceLengthRemaining)
 
template<typename DestBufferType >
static void Convert_Impl (DestBufferType &ConvertedBuffer, int32 DestLen, const FromType *Source, const int32 SourceLen)
 

Detailed Description

template<typename InFromType, typename InToType>
class TUTF16ToUTF32_Convert< InFromType, InToType >

Definition at line 518 of file StringConv.h.

Member Typedef Documentation

◆ FromType

◆ ToType

Member Function Documentation

◆ CodepointFromUtf16()

static uint32 TUTF16ToUTF32_Convert< InFromType, InToType >::CodepointFromUtf16 ( const FromType *& SourceString,
const uint32 SourceLengthRemaining )
inlinestaticprivate

Definition at line 564 of file StringConv.h.

◆ Convert()

template<typename SrcBufferType , std::enable_if_t< TIsCharEncodingCompatibleWith_V< SrcBufferType, FromType > > * = nullptr>
static FORCEINLINE void TUTF16ToUTF32_Convert< InFromType, InToType >::Convert ( ToType * Dest,
const int32 DestLen,
const SrcBufferType * Source,
const int32 SourceLen )
inlinestatic

Converts the UTF-16 string to 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 539 of file StringConv.h.

◆ Convert_Impl()

static void TUTF16ToUTF32_Convert< InFromType, InToType >::Convert_Impl ( DestBufferType & ConvertedBuffer,
int32 DestLen,
const FromType * Source,
const int32 SourceLen )
inlinestaticprivate

Read Source string, converting the data from UTF-16 into UTF-32, and placing these in the Destination

Definition at line 621 of file StringConv.h.

◆ ConvertedLength()

template<typename SrcBufferType , std::enable_if_t< TIsCharEncodingCompatibleWith_V< SrcBufferType, FromType > > * = nullptr>
static int32 TUTF16ToUTF32_Convert< InFromType, InToType >::ConvertedLength ( const SrcBufferType * Source,
const int32 SourceLen )
inlinestatic

Determines the length of the converted string.

Parameters
Sourcestring to read and determine amount of ToType chars 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-32 characters.

Definition at line 555 of file StringConv.h.


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