Lines Matching refs:chars_required
63 const int chars_required = WideCharToMultiByte(CP_UTF8, flags, utf16, size, in WideToUTF8() local
65 if (chars_required <= 0) { in WideToUTF8()
71 utf8->resize(chars_required); in WideToUTF8()
74 &(*utf8)[0], chars_required, NULL, in WideToUTF8()
76 if (result != chars_required) { in WideToUTF8()
78 CHECK_LE(result, chars_required) << "WideCharToMultiByte wrote " << result in WideToUTF8()
79 << " chars to buffer of " << chars_required << " chars"; in WideToUTF8()
109 const int chars_required = MultiByteToWideChar(CP_UTF8, flags, utf8, size, in UTF8ToWideWithFlags() local
111 if (chars_required <= 0) { in UTF8ToWideWithFlags()
117 utf16->resize(chars_required); in UTF8ToWideWithFlags()
120 &(*utf16)[0], chars_required); in UTF8ToWideWithFlags()
121 if (result != chars_required) { in UTF8ToWideWithFlags()
123 CHECK_LE(result, chars_required) << "MultiByteToWideChar wrote " << result in UTF8ToWideWithFlags()
124 << " chars to buffer of " << chars_required << " chars"; in UTF8ToWideWithFlags()