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

Helper class used by the string conversion macros RA2W, RA2WCL and RA2WL More...

Inheritance diagram for System::RA2WEX< BUFFER_SIZE, TMP_BUFFER_SIZE >:
System::RT2 System::RT2

Public Member Functions

 RA2WEX (_In_ LPCSTR lpstr)
 
 RA2WEX (_In_ LPCSTR lpstr, _In_ intptr_t sizeInChars)
 
 operator const wchar_t * () const
 
 operator wchar_t * ()
 
const wchar_t * toUnicode () const
 
wchar_t * toUnicode ()
 
intptr_t sizeofUnicode () const
 Gets the size of string converted, in bytes, not null terminator included. More...
 
 RA2WEX (_In_ LPCSTR lpstr)
 
 RA2WEX (_In_ LPCSTR lpstr, _In_ intptr_t sizeInChars)
 
 operator const wchar_t * () const
 
 operator wchar_t * ()
 
const wchar_t * toUnicode () const
 
wchar_t * toUnicode ()
 
intptr_t sizeofUnicode () const
 Gets the size of string converted, in bytes, not counting the terminating null character. More...
 
RLIB_INLINE intptr_t length () const
 Gets the length of string converted, in chars, not counting the terminating null character. More...
 

Static Public Member Functions

static constexpr intptr_t require (_In_ intptr_t sizeInChars)
 
static constexpr intptr_t require (_In_ intptr_t sizeInChars)
 
- Static Public Member Functions inherited from System::RT2
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

wchar_t m_buffer [BUFFER_SIZE]
 
- Protected Attributes inherited from System::RT2
size_t m_sizeConverted
 

Detailed Description

template<intptr_t BUFFER_SIZE = RLIB_DEFAULT_LENGTH, intptr_t TMP_BUFFER_SIZE = RLIB_DEFAULT_LENGTH>
class System::RA2WEX< BUFFER_SIZE, TMP_BUFFER_SIZE >

Helper class used by the string conversion macros RA2W, RA2WCL and RA2WL

Member Function Documentation

template<intptr_t BUFFER_SIZE = RLIB_DEFAULT_LENGTH, intptr_t TMP_BUFFER_SIZE = RLIB_DEFAULT_LENGTH>
RLIB_INLINE intptr_t System::RA2WEX< BUFFER_SIZE, TMP_BUFFER_SIZE >::length ( ) const
inline

Gets the length of string converted, in chars, not counting the terminating null character.

template<intptr_t BUFFER_SIZE = RLIB_DEFAULT_LENGTH, intptr_t TMP_BUFFER_SIZE = RLIB_DEFAULT_LENGTH>
intptr_t System::RA2WEX< BUFFER_SIZE, TMP_BUFFER_SIZE >::sizeofUnicode ( ) const
inline

Gets the size of string converted, in bytes, not counting the terminating null character.

template<intptr_t BUFFER_SIZE = RLIB_DEFAULT_LENGTH, intptr_t TMP_BUFFER_SIZE = RLIB_DEFAULT_LENGTH>
intptr_t System::RA2WEX< BUFFER_SIZE, TMP_BUFFER_SIZE >::sizeofUnicode ( ) const
inline

Gets the size of string converted, in bytes, not null terminator included.


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