/external/llvm-project/libcxx/test/std/input.output/filesystems/class.path/path.member/ |
D | path.charconv.pass.cpp | 61 const wchar_t wstr[] = { 0xe5, 0xe4, 0xf6, 0x00 }; in test_latin_unicode() local 119 assert(p.wstring() == wstr); in test_latin_unicode() 120 assert(p.string<wchar_t>() == wstr); in test_latin_unicode() 124 assert(p.wstring() == wstr); in test_latin_unicode() 125 assert(p.string<wchar_t>() == wstr); in test_latin_unicode() 128 const fs::path p(wstr); in test_latin_unicode() 129 assert(p.wstring() == wstr); in test_latin_unicode() 133 assert(p.string<wchar_t>() == wstr); in test_latin_unicode() 162 const fs::path p(wstr); in test_latin_unicode() 169 assert(p.wstring() == wstr); in test_latin_unicode() [all …]
|
/external/pdfium/testing/ |
D | fx_string_testhelpers.cpp | 37 std::string GetPlatformString(FPDF_WIDESTRING wstr) { in GetPlatformString() argument 39 WideString::FromUTF16LE(wstr, WideString::WStringLength(wstr)); in GetPlatformString() 43 std::wstring GetPlatformWString(FPDF_WIDESTRING wstr) { in GetPlatformWString() argument 44 if (!wstr) in GetPlatformWString() 48 while (wstr[characters]) in GetPlatformWString() 53 const unsigned char* ptr = reinterpret_cast<const unsigned char*>(&wstr[i]); in GetPlatformWString() 59 ScopedFPDFWideString GetFPDFWideString(const std::wstring& wstr) { in GetFPDFWideString() argument 60 size_t length = sizeof(uint16_t) * (wstr.length() + 1); in GetFPDFWideString() 65 for (wchar_t w : wstr) { in GetFPDFWideString()
|
D | fx_string_testhelpers.h | 24 std::string GetPlatformString(FPDF_WIDESTRING wstr); 28 std::wstring GetPlatformWString(FPDF_WIDESTRING wstr); 34 ScopedFPDFWideString GetFPDFWideString(const std::wstring& wstr);
|
/external/deqp/external/vulkancts/framework/vulkan/ |
D | vkStrUtil.cpp | 57 LPCWSTR wstr; member 59 WStr (LPCWSTR wstr_) : wstr(wstr_) {} in WStr() 62 std::ostream& operator<< (std::ostream& str, const WStr& wstr) in operator <<() argument 64 int len = WideCharToMultiByte(CP_UTF8, 0, wstr.wstr, -1, NULL, 0, 0, 0); in operator <<() 70 WideCharToMultiByte(CP_UTF8, 0, wstr.wstr, -1, &result[0], len, 0, 0); in operator <<()
|
/external/tensorflow/tensorflow/core/platform/windows/ |
D | wide_char.cc | 33 std::string WideCharToUtf8(const std::wstring& wstr) { in WideCharToUtf8() argument 34 if (wstr.empty()) return std::string(); in WideCharToUtf8() 36 CP_UTF8, 0, wstr.c_str(), (int)wstr.size(), NULL, 0, NULL, NULL); in WideCharToUtf8() 38 WideCharToMultiByte(CP_UTF8, 0, wstr.c_str(), (int)wstr.size(), in WideCharToUtf8()
|
/external/llvm-project/libcxx/test/std/re/re.results/re.results.form/ |
D | form3.pass.cpp | 27 typedef std::basic_string<wchar_t, std::char_traits<wchar_t>, test_allocator<wchar_t> > wstr; in main() typedef 61 wstr fmt(L"prefix: $`, match: $&, suffix: $', m[1]: $1, m[2]: $2"); in main() 62 wstr out = m.format(fmt); in main() 70 wstr fmt(L"prefix: $`, match: $&, suffix: $', m[1]: $1, m[2]: $2"); in main() 71 wstr out = m.format(fmt, std::regex_constants::format_sed); in main() 79 wstr fmt(L"match: &, m[1]: \\1, m[2]: \\2"); in main() 80 wstr out = m.format(fmt, std::regex_constants::format_sed); in main()
|
D | form2.pass.cpp | 28 typedef std::basic_string<wchar_t, std::char_traits<wchar_t>, test_allocator<wchar_t> > wstr; in main() typedef 71 wstr fmt(L"prefix: $`, match: $&, suffix: $', m[1]: $1, m[2]: $2"); in main() 82 wstr fmt(L"prefix: $`, match: $&, suffix: $', m[1]: $1, m[2]: $2"); in main() 94 wstr fmt(L"match: &, m[1]: \\1, m[2]: \\2"); in main()
|
/external/libcxx/test/std/re/re.results/re.results.form/ |
D | form3.pass.cpp | 30 typedef std::basic_string<wchar_t, std::char_traits<wchar_t>, test_allocator<wchar_t> > wstr; in main() typedef 64 wstr fmt(L"prefix: $`, match: $&, suffix: $', m[1]: $1, m[2]: $2"); in main() 65 wstr out = m.format(fmt); in main() 73 wstr fmt(L"prefix: $`, match: $&, suffix: $', m[1]: $1, m[2]: $2"); in main() 74 wstr out = m.format(fmt, std::regex_constants::format_sed); in main() 82 wstr fmt(L"match: &, m[1]: \\1, m[2]: \\2"); in main() 83 wstr out = m.format(fmt, std::regex_constants::format_sed); in main()
|
D | form2.pass.cpp | 31 typedef std::basic_string<wchar_t, std::char_traits<wchar_t>, test_allocator<wchar_t> > wstr; in main() typedef 74 wstr fmt(L"prefix: $`, match: $&, suffix: $', m[1]: $1, m[2]: $2"); in main() 85 wstr fmt(L"prefix: $`, match: $&, suffix: $', m[1]: $1, m[2]: $2"); in main() 97 wstr fmt(L"match: &, m[1]: \\1, m[2]: \\2"); in main()
|
/external/rust/crates/regex-automata/src/ |
D | codegen.rs | 16 macro_rules! wstr { macro 76 wstr!(buf, " enum S {{"); in state_enum_def() 84 wstr!(buf, "\n "); in state_enum_def() 87 wstr!(buf, " {},", name); in state_enum_def() 90 wstr!(buf, "\n"); in state_enum_def()
|
/external/llvm-project/clang/test/SemaCXX/ |
D | string-plus-char.cpp | 24 wchar_t *wstr; in f() local 25 …wstr = wstr + L'c'; // expected-warning {{adding 'wchar_t' to a string pointer does not append to … in f()
|
D | type-convert-construct.cpp | 35 wchar_t *wstr; in f() local 36 wstr = L"a wide string"; in f()
|
/external/clang/test/SemaCXX/ |
D | string-plus-char.cpp | 24 wchar_t *wstr; in f() local 25 …wstr = wstr + L'c'; // expected-warning {{adding 'wchar_t' to a string pointer does not append to … in f()
|
D | type-convert-construct.cpp | 27 wchar_t *wstr; in f() local 28 wstr = L"a wide string"; in f()
|
/external/libcups/cups/ |
D | pwg-media.c | 762 char wstr[32], lstr[32]; /* Width and length as strings */ in pwgMediaForPPD() local 774 …snprintf(cg->ppd_name, sizeof(cg->ppd_name), "%sx%s", pwg_format_inches(wstr, sizeof(wstr), w), pw… in pwgMediaForPPD() 776 …->ppd_name, sizeof(cg->ppd_name), "%sx%smm", pwg_format_millimeters(wstr, sizeof(wstr), w), pwg_fo… in pwgMediaForPPD() 872 char wstr[32], lstr[32]; /* Width and length strings */ in pwgMediaForPWG() local 885 …->ppd_name, sizeof(cg->ppd_name), "%sx%smm", pwg_format_millimeters(wstr, sizeof(wstr), w), pwg_fo… in pwgMediaForPWG() 887 …snprintf(cg->ppd_name, sizeof(cg->ppd_name), "%sx%s", pwg_format_inches(wstr, sizeof(wstr), w), pw… in pwgMediaForPWG() 939 char wstr[32], lstr[32]; /* Width and length as strings */ in _pwgMediaNearSize() local 993 …snprintf(cg->ppd_name, sizeof(cg->ppd_name), "%sx%s", pwg_format_inches(wstr, sizeof(wstr), width)… in _pwgMediaNearSize() 995 …->ppd_name, sizeof(cg->ppd_name), "%sx%smm", pwg_format_millimeters(wstr, sizeof(wstr), width), pw… in _pwgMediaNearSize()
|
/external/webrtc/rtc_base/ |
D | string_utils.h | 79 inline std::string ToUtf8(const std::wstring& wstr) { in ToUtf8() argument 80 return ToUtf8(wstr.data(), wstr.length()); in ToUtf8()
|
/external/python/pybind11/tests/ |
D | test_builtin_casters.cpp | 69 std::wstring wstr; in PYBIND11_NAMESPACE_END() local 70 wstr.push_back(0x61); // a in PYBIND11_NAMESPACE_END() 71 wstr.push_back(0x2e18); // ⸘ in PYBIND11_NAMESPACE_END() 72 …if (sizeof(wchar_t) == 2) { wstr.push_back(mathbfA16_1); wstr.push_back(mathbfA16_2); } // , utf… in PYBIND11_NAMESPACE_END() 73 else { wstr.push_back((wchar_t) mathbfA32); } // , utf32 in PYBIND11_NAMESPACE_END() 74 wstr.push_back(0x7a); // z in PYBIND11_NAMESPACE_END() 79 m.def("good_wchar_string", [=]() { return wstr; }); // a‽z in PYBIND11_NAMESPACE_END()
|
/external/webrtc/rtc_base/system/ |
D | file_wrapper.cc | 29 std::wstring wstr(len, 0); in FileOpen() local 30 MultiByteToWideChar(CP_UTF8, 0, file_name_utf8, -1, &wstr[0], len); in FileOpen() 31 FILE* file = _wfopen(wstr.c_str(), read_only ? L"rb" : L"wb"); in FileOpen()
|
/external/python/cpython3/Modules/ |
D | _cursesmodule.c | 352 PyObject **bytes, wchar_t **wstr) in PyCurses_ConvertToString() argument 357 assert (wstr != NULL); in PyCurses_ConvertToString() 359 *wstr = PyUnicode_AsWideCharString(obj, NULL); in PyCurses_ConvertToString() 360 if (*wstr == NULL) in PyCurses_ConvertToString() 364 assert (wstr == NULL); in PyCurses_ConvertToString() 611 wchar_t wstr[2]; in _curses_window_addch_impl() local 617 type = PyCurses_ConvertToCchar_t(self, ch, &cch, wstr); in _curses_window_addch_impl() 620 wstr[1] = L'\0'; in _curses_window_addch_impl() 621 setcchar(&wcval, wstr, attr, attr_to_color_pair(attr), NULL); in _curses_window_addch_impl() 683 wchar_t *wstr = NULL; in _curses_window_addstr_impl() local [all …]
|
/external/python/cpython3/Python/ |
D | fileutils.c | 317 decode_ascii(const char *arg, wchar_t **wstr, size_t *wlen, in decode_ascii() argument 363 *wstr = res; in decode_ascii() 369 decode_current_locale(const char* arg, wchar_t **wstr, size_t *wlen, in decode_current_locale() argument 416 *wstr = res; in decode_current_locale() 490 *wstr = res; in decode_current_locale() 506 return decode_ascii(arg, wstr, wlen, reason, errors); in decode_current_locale() 534 _Py_DecodeLocaleEx(const char* arg, wchar_t **wstr, size_t *wlen, in _Py_DecodeLocaleEx() argument 540 return _Py_DecodeUTF8Ex(arg, strlen(arg), wstr, wlen, reason, in _Py_DecodeLocaleEx() 543 return decode_current_locale(arg, wstr, wlen, reason, errors); in _Py_DecodeLocaleEx() 548 return _Py_DecodeUTF8Ex(arg, strlen(arg), wstr, wlen, reason, in _Py_DecodeLocaleEx() [all …]
|
/external/flac/src/share/win_utf8_io/ |
D | win_utf8_io.c | 62 static char *utf8_from_wchar(const wchar_t *wstr) in utf8_from_wchar() argument 67 if (!wstr) in utf8_from_wchar() 69 if ((len = WideCharToMultiByte(CP_UTF8, 0, wstr, -1, NULL, 0, NULL, NULL)) == 0) in utf8_from_wchar() 73 if (WideCharToMultiByte(CP_UTF8, 0, wstr, -1, utf8str, len, NULL, NULL) == 0) { in utf8_from_wchar()
|
/external/llvm-project/clang-tools-extra/docs/clang-tidy/checks/ |
D | boost-use-to-string.rst | 17 auto wstr = boost::lexical_cast<std::wstring>(2137LL); 21 auto wstr = std::to_wstring(2137LL);
|
/external/llvm-project/clang-tools-extra/test/clang-tidy/checkers/ |
D | readability-container-size-empty.cpp | 107 std::wstring wstr; in main() local 142 if (wstr.size() == 0) in main() 146 if (wstr == "") in main()
|
D | bugprone-string-constructor.cpp | 36 std::wstring wstr(L'x', 4); in Test() local 96 std::wstring wstr(4, L'x'); in Valid() local
|
/external/llvm/utils/unittest/googletest/include/gtest/ |
D | gtest-message.h | 177 Message& operator <<(const ::std::wstring& wstr); 183 Message& operator <<(const ::wstring& wstr);
|