Searched refs:BufferSize (Results 1 – 1 of 1) sorted by relevance
/ndk/sources/cxx-stl/stlport/src/c_locale_win32/ |
D | c_locale_win32.c | 312 int BufferSize; in _Locale_ctype_create() local 347 … BufferSize = MultiByteToWideChar(ltype->cp, MB_PRECOMPOSED, (const char*)Buffer, 256, NULL, 0); in _Locale_ctype_create() 348 if (!BufferSize) { free(ltype); *__err_code = _STLP_LOC_UNKNOWN_NAME; return NULL; } in _Locale_ctype_create() 349 wbuffer = (wchar_t*)malloc(BufferSize * sizeof(wchar_t)); in _Locale_ctype_create() 351 MultiByteToWideChar(ltype->cp, MB_PRECOMPOSED, (const char*)Buffer, 256, wbuffer, BufferSize); in _Locale_ctype_create() 363 BufferSize = MultiByteToWideChar(NativeCP, MB_PRECOMPOSED, (const char*)Buffer, 256, NULL, 0); in _Locale_ctype_create() 364 if (!BufferSize) { free(ltype); *__err_code = _STLP_LOC_UNKNOWN_NAME; return NULL; } in _Locale_ctype_create() 365 wbuffer = (wchar_t*)malloc(BufferSize * sizeof(wchar_t)); in _Locale_ctype_create() 367 MultiByteToWideChar(NativeCP, MB_PRECOMPOSED, (const char*)Buffer, 256, wbuffer, BufferSize); in _Locale_ctype_create() 368 …if (!WideCharToMultiByte(ltype->cp, WC_COMPOSITECHECK | WC_SEPCHARS, wbuffer, BufferSize, (char*)T… in _Locale_ctype_create() [all …]
|