Home
last modified time | relevance | path

Searched refs:wstr (Results 1 – 25 of 73) sorted by relevance

123

/external/llvm-project/libcxx/test/std/input.output/filesystems/class.path/path.member/
Dpath.charconv.pass.cpp61 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/
Dfx_string_testhelpers.cpp37 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()
Dfx_string_testhelpers.h24 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/
DvkStrUtil.cpp57 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/
Dwide_char.cc33 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/
Dform3.pass.cpp27 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()
Dform2.pass.cpp28 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/
Dform3.pass.cpp30 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()
Dform2.pass.cpp31 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/
Dcodegen.rs16 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/
Dstring-plus-char.cpp24 wchar_t *wstr; in f() local
25wstr = wstr + L'c'; // expected-warning {{adding 'wchar_t' to a string pointer does not append to … in f()
Dtype-convert-construct.cpp35 wchar_t *wstr; in f() local
36 wstr = L"a wide string"; in f()
/external/clang/test/SemaCXX/
Dstring-plus-char.cpp24 wchar_t *wstr; in f() local
25wstr = wstr + L'c'; // expected-warning {{adding 'wchar_t' to a string pointer does not append to … in f()
Dtype-convert-construct.cpp27 wchar_t *wstr; in f() local
28 wstr = L"a wide string"; in f()
/external/libcups/cups/
Dpwg-media.c762 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/
Dstring_utils.h79 inline std::string ToUtf8(const std::wstring& wstr) { in ToUtf8() argument
80 return ToUtf8(wstr.data(), wstr.length()); in ToUtf8()
/external/python/pybind11/tests/
Dtest_builtin_casters.cpp69 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/
Dfile_wrapper.cc29 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.c352 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/
Dfileutils.c317 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/
Dwin_utf8_io.c62 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/
Dboost-use-to-string.rst17 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/
Dreadability-container-size-empty.cpp107 std::wstring wstr; in main() local
142 if (wstr.size() == 0) in main()
146 if (wstr == "") in main()
Dbugprone-string-constructor.cpp36 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/
Dgtest-message.h177 Message& operator <<(const ::std::wstring& wstr);
183 Message& operator <<(const ::wstring& wstr);

123