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

Helper class used by the string conversion macros RW2A, RW2ACL and RW2AL More...

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

Public Member Functions

 RW2AEX (_In_ LPCWSTR lpwstr)
 
 RW2AEX (_In_ LPCWSTR lpwstr, _In_ intptr_t sizeInChars)
 
 operator const char * () const
 
 operator char * ()
 
const char * toGBK () const
 
char * toGBK ()
 
intptr_t sizeofGBK () const
 Gets the size of string converted, in bytes, not null terminator included. More...
 
 RW2AEX (_In_ LPCWSTR lpwstr)
 
 RW2AEX (_In_ LPCWSTR lpwstr, _In_ intptr_t sizeInChars)
 
 operator const char * () const
 
 operator char * ()
 
const char * toGBK () const
 
char * toGBK ()
 
intptr_t sizeofGBK () 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

char 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::RW2AEX< BUFFER_SIZE, TMP_BUFFER_SIZE >

Helper class used by the string conversion macros RW2A, RW2ACL and RW2AL

Member Function Documentation

template<intptr_t BUFFER_SIZE = RLIB_DEFAULT_LENGTH, intptr_t TMP_BUFFER_SIZE = RLIB_DEFAULT_LENGTH>
RLIB_INLINE intptr_t System::RW2AEX< 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::RW2AEX< BUFFER_SIZE, TMP_BUFFER_SIZE >::sizeofGBK ( ) 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::RW2AEX< BUFFER_SIZE, TMP_BUFFER_SIZE >::sizeofGBK ( ) 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: