15 MultiByteToWideChar( source_cp,
24 size_t idx = CharsRequired *
sizeof(WCHAR);
25 MultiByteToWideChar( source_cp,
27 (LPCSTR) source->
data,
31 *((WCHAR*) (res->
data + idx)) = 0;
51 WideCharToMultiByte( dest_cp,
53 (LPCWSTR) source->
data,
62 WideCharToMultiByte( dest_cp,
64 (LPCWSTR) source->
data,
70 res->
data[CharsRequired] = 0;
93 pszBuffer = (
char*) realloc( pszBuffer, uiSize <<= 1 );
96 if( GetLocaleInfo( Locale, LCType, pszBuffer, uiSize - 1 )!=0 ) {
99 if( GetLastError( ) != ERROR_INSUFFICIENT_BUFFER ) {
106 if( GetLocaleInfo( Locale, LCType, pszBuffer, uiSize )!=0 )