RLib  5.7
RLib - an opensource, lightweight and multi-platform framework for cpp programming
System::RT2 Class Reference
Inheritance diagram for System::RT2:
System::RA2WEX< BUFFER_SIZE, TMP_BUFFER_SIZE > System::RA2WEX< BUFFER_SIZE, TMP_BUFFER_SIZE > System::RW2AEX< BUFFER_SIZE, TMP_BUFFER_SIZE > System::RW2AEX< BUFFER_SIZE, TMP_BUFFER_SIZE >

Static Public Member Functions

static intptr_t UnicodeToMultiByte (_Out_ PCHAR MultiByteString, _In_ size_t MaxBytesInMultiByteString, _In_ PCWCH UnicodeString, _In_ size_t BytesInUnicodeString)
 Translates the specified Unicode string into a new character string, using the current system ANSI code page (ACP). It returns a null-terminated multibyte string if the given BytesInUnicodeString included a NULL terminator and if the given MaxBytesInMultiByteString did not cause truncation. More...
 
static intptr_t UnicodeToMultiByteSize (_In_ PCWCH UnicodeString, _In_ size_t BytesInUnicodeString)
 Determines the number of bytes that are required to store the multibyte translation for the specified Unicode string. The returned value does not include space for a NULL terminator for the ANSI string. The translation is assumed to use the current system ANSI code page (ACP). More...
 
static intptr_t MultiByteToUnicode (_Out_ PWCH UnicodeString, _In_ size_t MaxBytesInUnicodeString, _In_ const CHAR *MultiByteString, _In_ size_t BytesInMultiByteString)
 Translates the specified source string into a Unicode string, using the current system ANSI code page (ACP). The returned Unicode string is not null-terminated More...
 
static intptr_t MultiByteToUnicodeSize (_In_ const CHAR *MultiByteString, _In_ size_t BytesInMultiByteString)
 Determines the number of bytes that are required to store the Unicode translation for the specified source string. The returned value does not include space for a NULL terminator for the Unicode string. The translation is assumed to use the current system ANSI code page (ACP) More...
 

Protected Attributes

size_t m_sizeConverted
 

Member Function Documentation

intptr_t RT2::MultiByteToUnicode ( _Out_ PWCH  UnicodeString,
_In_ size_t  MaxBytesInUnicodeString,
_In_ const CHAR *  MultiByteString,
_In_ size_t  BytesInMultiByteString 
)
static

Translates the specified source string into a Unicode string, using the current system ANSI code page (ACP). The returned Unicode string is not null-terminated

Returns
receives the length, in bytes, of the translated string
intptr_t RT2::MultiByteToUnicodeSize ( _In_ const CHAR *  MultiByteString,
_In_ size_t  BytesInMultiByteString 
)
static

Determines the number of bytes that are required to store the Unicode translation for the specified source string. The returned value does not include space for a NULL terminator for the Unicode string. The translation is assumed to use the current system ANSI code page (ACP)

Returns
receives the number of bytes that are required to store the translated string
intptr_t RT2::UnicodeToMultiByte ( _Out_ PCHAR  MultiByteString,
_In_ size_t  MaxBytesInMultiByteString,
_In_ PCWCH  UnicodeString,
_In_ size_t  BytesInUnicodeString 
)
static

Translates the specified Unicode string into a new character string, using the current system ANSI code page (ACP). It returns a null-terminated multibyte string if the given BytesInUnicodeString included a NULL terminator and if the given MaxBytesInMultiByteString did not cause truncation.

Returns
receives the length, in bytes, of the translated string
intptr_t RT2::UnicodeToMultiByteSize ( _In_ PCWCH  UnicodeString,
_In_ size_t  BytesInUnicodeString 
)
static

Determines the number of bytes that are required to store the multibyte translation for the specified Unicode string. The returned value does not include space for a NULL terminator for the ANSI string. The translation is assumed to use the current system ANSI code page (ACP).

Returns
receives the number of bytes required to store the translated string

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