Home
last modified time | relevance | path

Searched refs:chars_required (Results 1 – 1 of 1) sorted by relevance

/system/core/base/
Dutf8.cpp63 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()
[all …]