Home
last modified time | relevance | path

Searched refs:wstr (Results 1 - 25 of 28) sorted by relevance

12

/third_party/lame/frontend/
H A Dmain.c293 wchar_t* wstr = malloc( n*sizeof(wstr[0]) ); in mbsToUnicode() local
294 if ( wstr !=0 ) { in mbsToUnicode()
295 n = MultiByteToWideChar(code_page, 0, mbstr, -1, wstr, n); in mbsToUnicode()
297 free( wstr ); in mbsToUnicode()
298 wstr = 0; in mbsToUnicode()
301 return wstr; in mbsToUnicode()
304 static char *unicodeToMbs(const wchar_t *wstr, int code_page) in unicodeToMbs() argument
306 int n = 1+WideCharToMultiByte(code_page, 0, wstr, -1, 0, 0, 0, 0); in unicodeToMbs()
309 n = WideCharToMultiByte(code_page, 0, wstr, in unicodeToMbs()
320 wchar_t* wstr = mbsToUnicode(str, cp_from); mbsToMbs() local
336 unicodeToUtf8(const wchar_t *wstr) unicodeToUtf8() argument
369 wchar_t* wstr = malloc( (n+1)*sizeof(wstr[0]) ); utf8ToUtf16() local
436 wchar_t* wstr = _wgetenv(wvar); lame_getenv() local
[all...]
H A Dmain.h98 extern char *unicodeToUtf8(const wchar_t *wstr);
/third_party/musl/libc-test/src/functionalext/supplement/unistd/
H A Dreadlink.c31 char *wstr = "this is a test\n"; in readlink_0100() local
37 int size = fwrite(wstr, sizeof(char), strlen(wstr), fptr); in readlink_0100()
38 EXPECT_EQ("readlink_0100", size, strlen(wstr)); in readlink_0100()
47 wstr = NULL; in readlink_0100()
64 char *wstr = "this is a test\n"; in readlink_0200() local
70 int size = fwrite(wstr, sizeof(char), strlen(wstr), fptr); in readlink_0200()
71 EXPECT_EQ("readlink_0200", size, strlen(wstr)); in readlink_0200()
80 wstr in readlink_0200()
[all...]
/third_party/node/deps/openssl/openssl/apps/lib/
H A Dwin32_init.c58 static int process_glob(WCHAR *wstr, int wlen) in process_glob() argument
74 if (wstr[i] == L'/' || wstr[i] == L'\\') in process_glob()
80 if (wstr[i] == L'*' || wstr[i] == L'?') in process_glob()
86 saved_char = wstr[wlen]; in process_glob()
87 wstr[wlen] = L'\0'; in process_glob()
88 h = FindFirstFileW(wstr, &data); in process_glob()
89 wstr[wlen] = saved_char; in process_glob()
94 udlen = WideCharToMultiByte(CP_UTF8, 0, wstr, slas in process_glob()
[all...]
/third_party/openssl/apps/lib/
H A Dwin32_init.c58 static int process_glob(WCHAR *wstr, int wlen) in process_glob() argument
74 if (wstr[i] == L'/' || wstr[i] == L'\\') in process_glob()
80 if (wstr[i] == L'*' || wstr[i] == L'?') in process_glob()
86 saved_char = wstr[wlen]; in process_glob()
87 wstr[wlen] = L'\0'; in process_glob()
88 h = FindFirstFileW(wstr, &data); in process_glob()
89 wstr[wlen] = saved_char; in process_glob()
94 udlen = WideCharToMultiByte(CP_UTF8, 0, wstr, slas in process_glob()
[all...]
/third_party/vk-gl-cts/external/vulkancts/framework/vulkan/
H A DvkStrUtil.cpp61 LPCWSTR wstr; member
63 WStr (LPCWSTR wstr_) : wstr(wstr_) {} in WStr()
66 std::ostream& operator<< (std::ostream& str, const WStr& wstr) in operator <<() argument
68 int len = WideCharToMultiByte(CP_UTF8, 0, wstr.wstr, -1, NULL, 0, 0, 0); in operator <<()
74 WideCharToMultiByte(CP_UTF8, 0, wstr.wstr, -1, &result[0], len, 0, 0); in operator <<()
/third_party/musl/libc-test/src/functionalext/supplement/stdio/
H A Dswscanf.c30 wchar_t wstr[] = L"swscanf 123"; in swscanf_0100() local
33 int result = swscanf(wstr, L"%ls %d", tmp, &i); in swscanf_0100()
54 wchar_t wstr[] = L"swscanf 123"; in swscanf_0200() local
58 int result = swscanf(wstr, L"%ls %ls", tmp1, tmp2); in swscanf_0200()
78 wchar_t wstr[] = L"swscanf 123"; in swscanf_0300() local
80 int result = swscanf(wstr, L"%d %d", &i, &j); in swscanf_0300()
H A Dgetc_unlocked.c31 const char *wstr = "a"; in getc_unlocked_0100() local
32 fwrite(wstr, sizeof(char), strlen(wstr), fptr); in getc_unlocked_0100()
/third_party/python/Modules/
H A D_testinternalcapi.c409 wchar_t *wstr; in encode_locale_ex() local
416 wstr = PyUnicode_AsWideCharString(unicode, NULL); in encode_locale_ex()
417 if (wstr == NULL) { in encode_locale_ex()
425 int ret = _Py_EncodeLocaleEx(wstr, in encode_locale_ex()
428 PyMem_Free(wstr); in encode_locale_ex()
466 wchar_t *wstr = NULL; in decode_locale_ex() local
470 &wstr, &wlen, &reason, in decode_locale_ex()
475 res = PyUnicode_FromWideChar(wstr, wlen); in decode_locale_ex()
476 PyMem_RawFree(wstr); in decode_locale_ex()
H A D_cursesmodule.c368 PyObject **bytes, wchar_t **wstr) in PyCurses_ConvertToString()
373 assert (wstr != NULL); in PyCurses_ConvertToString()
375 *wstr = PyUnicode_AsWideCharString(obj, NULL); in PyCurses_ConvertToString()
376 if (*wstr == NULL) in PyCurses_ConvertToString()
380 assert (wstr == NULL); in PyCurses_ConvertToString()
755 wchar_t wstr[2]; in _curses_window_addch_impl() local
761 type = PyCurses_ConvertToCchar_t(self, ch, &cch, wstr); in _curses_window_addch_impl()
764 wstr[1] = L'\0'; in _curses_window_addch_impl()
765 setcchar(&wcval, wstr, attr, PAIR_NUMBER(attr), NULL); in _curses_window_addch_impl()
827 wchar_t *wstr in _curses_window_addstr_impl() local
367 PyCurses_ConvertToString(PyCursesWindowObject *win, PyObject *obj, PyObject **bytes, wchar_t **wstr) PyCurses_ConvertToString() argument
910 wchar_t *wstr = NULL; _curses_window_addnstr_impl() local
1828 wchar_t *wstr = NULL; _curses_window_insstr_impl() local
1913 wchar_t *wstr = NULL; _curses_window_insnstr_impl() local
[all...]
/third_party/python/Python/
H A Dfileutils.c390 decode_ascii(const char *arg, wchar_t **wstr, size_t *wlen, in decode_ascii() argument
436 *wstr = res; in decode_ascii()
442 decode_current_locale(const char* arg, wchar_t **wstr, size_t *wlen, in decode_current_locale() argument
479 *wstr = res; in decode_current_locale()
545 *wstr = res; in decode_current_locale()
561 return decode_ascii(arg, wstr, wlen, reason, errors); in decode_current_locale()
575 *wstr (use PyMem_RawFree() to free the memory). If wlen is not NULL, write
589 _Py_DecodeLocaleEx(const char* arg, wchar_t **wstr, size_t *wlen, in _Py_DecodeLocaleEx() argument
595 return _Py_DecodeUTF8Ex(arg, strlen(arg), wstr, wlen, reason, in _Py_DecodeLocaleEx()
598 return decode_current_locale(arg, wstr, wle in _Py_DecodeLocaleEx()
653 wchar_t *wstr; Py_DecodeLocale() local
[all...]
H A Dinitconfig.c1218 wchar_t *wstr = PyUnicode_AsWideCharString(item, NULL); in config_dict_get_wstr() local
1219 if (wstr == NULL) { in config_dict_get_wstr()
1222 status = PyConfig_SetString(config, result, wstr); in config_dict_get_wstr()
1223 PyMem_Free(wstr); in config_dict_get_wstr()
1259 wchar_t *wstr = PyUnicode_AsWideCharString(item, NULL); in config_dict_get_wstrlist() local
1260 if (wstr == NULL) { in config_dict_get_wstrlist()
1263 PyStatus status = PyWideStringList_Append(&wstrlist, wstr); in config_dict_get_wstrlist()
1264 PyMem_Free(wstr); in config_dict_get_wstrlist()
1593 config_wstr_to_int(const wchar_t *wstr, int *result) in config_wstr_to_int() argument
1595 const wchar_t *endptr = wstr; in config_wstr_to_int()
[all...]
H A Dtraceback.c1096 wchar_t *wstr = NULL; in _Py_DumpASCII() local
1105 wstr = ascii->wstr; in _Py_DumpASCII()
1106 if (wstr == NULL) in _Py_DumpASCII()
1154 ch = wstr[i]; in _Py_DumpASCII()
/third_party/python/Include/cpython/
H A Dunicodeobject.h83 * (length is the length of the utf8 and wstr strings)
98 * wstr is shared with data and wstr_length=length
101 * wstr_length = 0 if wstr is NULL
115 * wstr is not NULL
131 * wstr is shared with data.any and wstr_length = length
134 * wstr_length = 0 if wstr is NULL
205 wchar_t *wstr; /* wchar_t representation (null-terminated) */ member
216 Py_ssize_t wstr_length; /* Number of code points in wstr, possible
221 PyUnicodeObject structure. The actual string data is initially in the wstr
305 /* String contains only wstr byt
687 wchar_t *wstr = _PyASCIIObject_CAST(op)->wstr; PyUnicode_AS_UNICODE() local
[all...]
/third_party/musl/Benchmark/musl/
H A Dlibc_stdlib.cpp321 const wchar_t wstr[] = L"z\u00df\u6c34\U0001f34c";
322 size_t len = wcslen(wstr);
325 benchmark::DoNotOptimize(wcstombs(str, wstr, len));
/third_party/python/Include/internal/
H A Dpycore_fileutils.h29 wchar_t **wstr,
183 wchar_t **wstr,
/third_party/protobuf/src/google/protobuf/io/
H A Dio_win32.cc449 std::unique_ptr<WCHAR[]> wstr(new WCHAR[size]); in mbs_to_wcs()
451 inUtf8 ? CP_UTF8 : CP_ACP, 0, s, -1, wstr.get(), size + 1); in mbs_to_wcs()
452 out->assign(wstr.get()); in mbs_to_wcs()
/third_party/googletest/googletest/include/gtest/
H A Dgtest-message.h181 Message& operator<<(const ::std::wstring& wstr);
/third_party/mesa3d/src/gtest/include/gtest/
H A Dgtest-message.h179 Message& operator <<(const ::std::wstring& wstr);
/third_party/python/Objects/
H A Dunicodeobject.c131 (_PyASCIIObject_CAST(op)->wstr)
178 /* true if the Unicode object has an allocated wstr memory block
540 CHECK(ascii->wstr != NULL); in _PyUnicode_CheckConsistency()
568 CHECK(ascii->wstr == data); in _PyUnicode_CheckConsistency()
571 CHECK(ascii->wstr != data); in _PyUnicode_CheckConsistency()
576 if (ascii->wstr == NULL) in _PyUnicode_CheckConsistency()
1093 wchar_t *wstr; in resize_inplace() local
1156 wstr = _PyUnicode_WSTR(unicode); in resize_inplace()
1157 wstr = PyObject_Realloc(wstr, new_siz in resize_inplace()
3194 const wchar_t *wstr = _PyUnicode_WSTR(unicode); unicode_copy_as_widechar() local
3733 wchar_t *wstr = PyUnicode_AsWideCharString(unicode, &wlen); unicode_encode_locale() local
3967 wchar_t *wstr; unicode_decode_locale() local
4247 const Py_UNICODE *wstr; _PyUnicode_AsUnicode() local
5264 _Py_DecodeUTF8Ex(const char *s, Py_ssize_t size, wchar_t **wstr, size_t *wlen, const char **reason, _Py_error_handler errors) _Py_DecodeUTF8Ex() argument
5376 wchar_t *wstr; _Py_DecodeUTF8_surrogateescape() local
12341 const wchar_t *wstr = _PyUnicode_WSTR(self); PyUnicode_IsIdentifier() local
15879 encode_wstr_utf8(wchar_t *wstr, char **str, const char *name) encode_wstr_utf8() argument
[all...]
/third_party/node/deps/googletest/include/gtest/
H A Dgtest-message.h212 Message& operator<<(const ::std::wstring& wstr);
/third_party/node/deps/openssl/openssl/engines/
H A De_capi.c1119 static char *wide_to_asc(LPCWSTR wstr) in wide_to_asc() argument
1125 if (!wstr) in wide_to_asc()
1128 len_1 = wcslen(wstr) + 1; in wide_to_asc()
1136 sz = WideCharToMultiByte(CP_ACP, 0, wstr, len_0, NULL, 0, NULL, NULL); in wide_to_asc()
1146 if (!WideCharToMultiByte(CP_ACP, 0, wstr, len_0, str, sz, NULL, NULL)) { in wide_to_asc()
/third_party/openssl/engines/
H A De_capi.c1119 static char *wide_to_asc(LPCWSTR wstr) in wide_to_asc() argument
1125 if (!wstr) in wide_to_asc()
1128 len_1 = wcslen(wstr) + 1; in wide_to_asc()
1136 sz = WideCharToMultiByte(CP_ACP, 0, wstr, len_0, NULL, 0, NULL, NULL); in wide_to_asc()
1146 if (!WideCharToMultiByte(CP_ACP, 0, wstr, len_0, str, sz, NULL, NULL)) { in wide_to_asc()
/third_party/googletest/googletest/src/
H A Dgtest.cc1219 static void StreamWideCharsToMessage(const wchar_t* wstr, size_t length,
1222 if (wstr[i] != L'\0') {
1223 *msg << WideStringToUtf8(wstr + i, static_cast<int>(length - i));
1224 while (i != length && wstr[i] != L'\0') i++;
1276 Message& Message::operator<<(const ::std::wstring& wstr) {
1277 internal::StreamWideCharsToMessage(wstr.c_str(), wstr.length(), this);
/third_party/mesa3d/src/gtest/src/
H A Dgtest.cc924 static void StreamWideCharsToMessage(const wchar_t* wstr, size_t length, in StreamWideCharsToMessage() argument
927 if (wstr[i] != L'\0') { in StreamWideCharsToMessage()
928 *msg << WideStringToUtf8(wstr + i, static_cast<int>(length - i)); in StreamWideCharsToMessage()
929 while (i != length && wstr[i] != L'\0') in StreamWideCharsToMessage()
982 Message& Message::operator <<(const ::std::wstring& wstr) { in operator <<() argument
983 internal::StreamWideCharsToMessage(wstr.c_str(), wstr.length(), this); in operator <<()

Completed in 44 milliseconds

12