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

#include <StringConv.h>

Public Types

typedef InFromType FromType
 
typedef InToType ToType
 

Static Public Member Functions

template<typename BufferType >
static int32 Utf16FromCodepoint (uint32 Codepoint, BufferType OutputIterator, uint32 OutputIteratorNumRemaining)
 
template<typename SrcBufferType , std::enable_if_t< TIsCharEncodingCompatibleWith_V< SrcBufferType, FromType > > * = nullptr>
static FORCEINLINE void Convert (ToType *Dest, int32 DestLen, const SrcBufferType *Source, int32 SourceLen)
 
template<typename SrcBufferType , std::enable_if_t< TIsCharEncodingCompatibleWith_V< SrcBufferType, FromType > > * = nullptr>
static FORCEINLINE int32 ConvertedLength (const SrcBufferType *Source, int32 SourceLen)
 

Static Private Member Functions

template<typename DestBufferType >
static void Convert_Impl (DestBufferType &Dest, int32 DestLen, const FromType *Source, const int32 SourceLen)
 
template<typename DestBufferType >
static bool WriteCodepointToBuffer (const uint32 Codepoint, DestBufferType &Dest, int32 &DestLen)
 

Detailed Description

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

Definition at line 386 of file StringConv.h.

Member Typedef Documentation

◆ FromType

◆ ToType

Member Function Documentation

◆ Convert()

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

Converts the string to the desired format.

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 463 of file StringConv.h.

◆ Convert_Impl()

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

Definition at line 488 of file StringConv.h.

◆ ConvertedLength()

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

Determines the length of the converted string.

Returns
The length of the string in UTF-16 code units.

Definition at line 477 of file StringConv.h.

◆ Utf16FromCodepoint()

template<typename BufferType >
static int32 TUTF32ToUTF16_Convert< InFromType, InToType >::Utf16FromCodepoint ( uint32 Codepoint,
BufferType OutputIterator,
uint32 OutputIteratorNumRemaining )
inlinestatic

Convert Codepoint into UTF-16 characters.

Parameters
CodepointCodepoint to expand into UTF-16 code units
OutputIteratorOutput iterator to write UTF-16 code units into
OutputIteratorNumRemainingMaximum number of UTF-16 code units that can be written to OutputIterator
Returns
Number of characters written for Codepoint

Definition at line 404 of file StringConv.h.

◆ WriteCodepointToBuffer()

static bool TUTF32ToUTF16_Convert< InFromType, InToType >::WriteCodepointToBuffer ( const uint32 Codepoint,
DestBufferType & Dest,
int32 & DestLen )
inlinestaticprivate

Definition at line 503 of file StringConv.h.


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