Home
last modified time | relevance | path

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

/third_party/glib/glib/tests/
Dconvert.c297 glong utf16_len, in check_utf8_to_utf16() argument
334 g_assert_cmpint (items_written, ==, utf16_len); in check_utf8_to_utf16()
355 g_assert_cmpint (items_written, ==, utf16_len); in check_utf8_to_utf16()
362 for (i = 0; i <= utf16_len; i++) in check_utf8_to_utf16()
372 glong utf16_len, in check_utf16_to_utf8() argument
383 result = g_utf16_to_utf8 (utf16, utf16_len, &items_read, &items_written, &error); in check_utf16_to_utf8()
384 if (utf16[utf16_len] == 0) in check_utf16_to_utf8()
403 result3 = g_utf16_to_utf8 (utf16, utf16_len, NULL, NULL, &error3); in check_utf16_to_utf8()
409 g_assert_cmpint (items_read + 1, ==, utf16_len); in check_utf16_to_utf8()
429 g_assert_cmpint (items_read, ==, utf16_len); in check_utf16_to_utf8()
[all …]
/third_party/libuv/src/win/
Dutil.c97 int utf8_len, utf16_buffer_len, utf16_len; in uv_exepath() local
118 utf16_len = GetModuleFileNameW(NULL, utf16_buffer, utf16_buffer_len); in uv_exepath()
119 if (utf16_len <= 0) { in uv_exepath()
125 utf16_buffer[utf16_len] = L'\0'; in uv_exepath()
155 DWORD utf16_len; in uv_cwd() local
163 utf16_len = GetCurrentDirectoryW(0, NULL); in uv_cwd()
164 if (utf16_len == 0) { in uv_cwd()
167 utf16_buffer = uv__malloc(utf16_len * sizeof(WCHAR)); in uv_cwd()
172 utf16_len = GetCurrentDirectoryW(utf16_len, utf16_buffer); in uv_cwd()
173 if (utf16_len == 0) { in uv_cwd()
[all …]
/third_party/boost/libs/log/src/
Dcode_conversion.cpp261 std::size_t utf16_len = std::wcslen(wstr); in utf16_to_utf8() local
262 if (utf16_len == 0) in utf16_to_utf8()
264 …else if (BOOST_UNLIKELY(utf16_len > static_cast< std::size_t >((std::numeric_limits< int >::max)()… in utf16_to_utf8()
273 …harToMultiByte(boost::winapi::CP_UTF8_, flags, wstr, static_cast< int >(utf16_len), NULL, 0, NULL,… in utf16_to_utf8()
279 …harToMultiByte(boost::winapi::CP_UTF8_, flags, wstr, static_cast< int >(utf16_len), &str[0], len, … in utf16_to_utf8()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Support/
DConvertUTF.h295 std::error_code UTF16ToUTF8(const wchar_t *utf16, size_t utf16_len,
298 std::error_code UTF16ToCurCP(const wchar_t *utf16, size_t utf16_len,
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-subzero/lib/Support/Windows/
DWindowsSupport.h255 std::error_code UTF16ToUTF8(const wchar_t *utf16, size_t utf16_len,
258 std::error_code UTF16ToCurCP(const wchar_t *utf16, size_t utf16_len,
DPath.inc943 size_t utf16_len,
945 if (utf16_len) {
947 int len = ::WideCharToMultiByte(codepage, 0, utf16, utf16_len, utf8.begin(),
957 len = ::WideCharToMultiByte(codepage, 0, utf16, utf16_len, utf8.data(),
971 std::error_code UTF16ToUTF8(const wchar_t *utf16, size_t utf16_len,
973 return UTF16ToCodePage(CP_UTF8, utf16, utf16_len, utf8);
976 std::error_code UTF16ToCurCP(const wchar_t *utf16, size_t utf16_len,
978 return UTF16ToCodePage(CP_ACP, utf16, utf16_len, utf8);
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Support/Windows/
DPath.inc1456 size_t utf16_len,
1458 if (utf16_len) {
1460 int len = ::WideCharToMultiByte(codepage, 0, utf16, utf16_len, converted.begin(),
1471 len = ::WideCharToMultiByte(codepage, 0, utf16, utf16_len, converted.data(),
1486 std::error_code UTF16ToUTF8(const wchar_t *utf16, size_t utf16_len,
1488 return UTF16ToCodePage(CP_UTF8, utf16, utf16_len, utf8);
1491 std::error_code UTF16ToCurCP(const wchar_t *utf16, size_t utf16_len,
1493 return UTF16ToCodePage(CP_ACP, utf16, utf16_len, curcp);