UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
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 >
static UE_FORCEINLINE_HINT void Convert (ToType *Dest, int32 DestLen, const SrcBufferType *Source, int32 SourceLen)
 
template<typename SrcBufferType >
static int32 ConvertedLength (const SrcBufferType *Source, int32 SourceLen)
 

Member Typedef Documentation

◆ FromType

◆ ToType

Member Function Documentation

◆ Convert()

template<typename SrcBufferType >
static UE_FORCEINLINE_HINT 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.

◆ ConvertedLength()

template<typename SrcBufferType >
static 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.

◆ 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

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