Home
last modified time | relevance | path

Searched refs:ws (Results 1 – 25 of 27) sorted by relevance

12

/ndk/sources/android/support/src/musl-multibyte/
Dwcsrtombs.c9 size_t wcsrtombs(char *restrict s, const wchar_t **restrict ws, size_t n, mbstate_t *restrict st) in wcsrtombs() argument
15 for (n=0, ws2=*ws; *ws2; ws2++) { in wcsrtombs()
25 if (**ws-1u >= 0x7fu) { in wcsrtombs()
26 if (!**ws) { in wcsrtombs()
28 *ws = 0; in wcsrtombs()
31 l = wcrtomb(s, **ws, 0); in wcsrtombs()
36 *s++ = **ws; in wcsrtombs()
39 (*ws)++; in wcsrtombs()
42 if (**ws-1u >= 0x7fu) { in wcsrtombs()
43 if (!**ws) { in wcsrtombs()
[all …]
Dmbsrtowcs.c12 size_t mbsrtowcs(wchar_t *restrict ws, const char **restrict src, size_t wn, mbstate_t *restrict st) in mbsrtowcs() argument
19 if (ws) { in mbsrtowcs()
27 if (!ws) for (;;) { in mbsrtowcs()
61 *ws++ = *s++; in mbsrtowcs()
62 *ws++ = *s++; in mbsrtowcs()
63 *ws++ = *s++; in mbsrtowcs()
64 *ws++ = *s++; in mbsrtowcs()
69 *ws++ = *s++; in mbsrtowcs()
86 *ws++ = c; in mbsrtowcs()
92 if (ws) { in mbsrtowcs()
[all …]
Dwcsnrtombs.c13 const wchar_t *ws = *wcs; in wcsnrtombs() local
18 while ( ws && n && ( (n2=wn)>=n || n2>32 ) ) { in wcsnrtombs()
21 l = wcsrtombs(s, &ws, n2, 0); in wcsnrtombs()
33 if (ws) while (n && wn) { in wcsnrtombs()
34 l = wcrtomb(s, *ws, 0); in wcsnrtombs()
36 if (!l) ws = 0; in wcsnrtombs()
40 ws++; wn--; in wcsnrtombs()
45 if (dst) *wcs = ws; in wcsnrtombs()
Dmbsnrtowcs.c12 wchar_t *ws, wbuf[256]; in mbsnrtowcs() local
15 if (!wcs) ws = wbuf, wn = sizeof wbuf / sizeof *wbuf; in mbsnrtowcs()
16 else ws = wcs; in mbsnrtowcs()
25 l = mbsrtowcs(ws, &s, n2, st); in mbsnrtowcs()
31 if (ws != wbuf) { in mbsnrtowcs()
32 ws += l; in mbsnrtowcs()
38 l = mbrtowc(ws, s, n, st); in mbsnrtowcs()
54 ws++; wn--; in mbsnrtowcs()
Dmbstowcs.c4 size_t mbstowcs(wchar_t *restrict ws, const char *restrict s, size_t wn) in mbstowcs() argument
6 return mbsrtowcs(ws, (void*)&s, wn, 0); in mbstowcs()
Dwcstombs.c4 size_t wcstombs(char *restrict s, const wchar_t *restrict ws, size_t n) in wcstombs() argument
6 return wcsrtombs(s, &(const wchar_t *){ws}, n, 0); in wcstombs()
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/localization/locales/locale.convenience/conversions/conversions.string/
Dfrom_bytes.pass.cpp28 std::wstring ws = myconv.from_bytes('a'); in main() local
29 assert(ws == L"a"); in main()
30 ws = myconv.from_bytes(bs.c_str()); in main()
31 assert(ws == L"\x40003"); in main()
32 ws = myconv.from_bytes(bs); in main()
33 assert(ws == L"\x40003"); in main()
34 ws = myconv.from_bytes(bs.data(), bs.data() + bs.size()); in main()
35 assert(ws == L"\x40003"); in main()
36 ws = myconv.from_bytes(""); in main()
37 assert(ws.size() == 0); in main()
Dto_bytes.pass.cpp27 std::wstring ws(1, L'\x40003'); in main() local
28 std::string bs = myconv.to_bytes(ws[0]); in main()
30 bs = myconv.to_bytes(ws.c_str()); in main()
32 bs = myconv.to_bytes(ws); in main()
34 bs = myconv.to_bytes(ws.data(), ws.data() + ws.size()); in main()
Dctor_err_string.pass.cpp65 std::wstring ws = myconv.from_bytes('\xA5'); in main() local
66 assert(ws == L"wide error"); in main()
Dconverted.pass.cpp30 std::wstring ws = myconv.from_bytes("\xF1\x80\x80\x83"); in main() local
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/depr/depr.c.headers/
Dwchar_h.pass.cpp44 wchar_t* ws = 0; in main() local
47 static_assert((std::is_same<decltype(swprintf(ws, s, L"")), int>::value), ""); in main()
51 static_assert((std::is_same<decltype(vswprintf(ws, s, L"", va)), int>::value), ""); in main()
58 static_assert((std::is_same<decltype(fgetws(ws, 0, fp)), wchar_t*>::value), ""); in main()
74 static_assert((std::is_same<decltype(wcscpy(ws, L"")), wchar_t*>::value), ""); in main()
75 static_assert((std::is_same<decltype(wcsncpy(ws, L"", s)), wchar_t*>::value), ""); in main()
76 static_assert((std::is_same<decltype(wcscat(ws, L"")), wchar_t*>::value), ""); in main()
77 static_assert((std::is_same<decltype(wcsncat(ws, L"", s)), wchar_t*>::value), ""); in main()
81 static_assert((std::is_same<decltype(wcsxfrm(ws, L"", s)), size_t>::value), ""); in main()
89 static_assert((std::is_same<decltype(wcstok(ws, L"", (wchar_t**)0)), wchar_t*>::value), ""); in main()
[all …]
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/input.output/iostream.format/input.streams/istream.manip/
Dws.pass.cpp48 ws(is); in main()
55 ws(is); in main()
62 ws(is); in main()
65 ws(is); in main()
72 ws(is); in main()
75 ws(is); in main()
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/strings/c.strings/
Dcwchar.pass.cpp44 wchar_t* ws = 0; in main() local
47 static_assert((std::is_same<decltype(std::swprintf(ws, s, L"")), int>::value), ""); in main()
51 static_assert((std::is_same<decltype(std::vswprintf(ws, s, L"", va)), int>::value), ""); in main()
58 static_assert((std::is_same<decltype(std::fgetws(ws, 0, fp)), wchar_t*>::value), ""); in main()
74 static_assert((std::is_same<decltype(std::wcscpy(ws, L"")), wchar_t*>::value), ""); in main()
75 static_assert((std::is_same<decltype(std::wcsncpy(ws, L"", s)), wchar_t*>::value), ""); in main()
76 static_assert((std::is_same<decltype(std::wcscat(ws, L"")), wchar_t*>::value), ""); in main()
77 static_assert((std::is_same<decltype(std::wcsncat(ws, L"", s)), wchar_t*>::value), ""); in main()
81 static_assert((std::is_same<decltype(std::wcsxfrm(ws, L"", s)), std::size_t>::value), ""); in main()
93 … static_assert((std::is_same<decltype(std::wcstok(ws, L"", (wchar_t**)0)), wchar_t*>::value), ""); in main()
[all …]
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/localization/locales/locale.convenience/conversions/conversions.buffer/
Dtest.pass.cpp31 std::wstring ws; in main() local
32 mystr >> ws; in main()
33 assert(ws == L"Hello"); in main()
/ndk/tests/device/test-stlport/unit/
Diostream_test.cpp46 istr >> ws; in manipulators()
55 istr >> ws; in manipulators()
65 istr >> ws; in manipulators()
74 istr >> ws; in manipulators()
/ndk/tests/device/test-gnustl-full/unit/
Diostream_test.cpp46 istr >> ws; in manipulators()
55 istr >> ws; in manipulators()
65 istr >> ws; in manipulators()
74 istr >> ws; in manipulators()
/ndk/tests/device/issue42891-boost-1_52/jni/boost/boost/test/
Dinteraction_based.hpp124 wrap_stringstream ws; in generic_data_flow() local
126 data_flow( (ws << t).str() ); in generic_data_flow()
131 wrap_stringstream ws; in generic_return() local
133 std::string const& res = return_value( (ws << dv).str() ); in generic_return()
/ndk/sources/cxx-stl/stlport/stlport/using/
Distream15 using _STLP_NEW_IO_NAMESPACE::ws;
/ndk/sources/cxx-stl/stlport/stlport/
Distream.h41 using _STLP_STD::ws;
/ndk/sources/android/support/src/stdio/
Dvfprintf.c482 wchar_t wc[2], *ws; in printf_core() local
652 ws = arg.p; in printf_core()
653 for (i=l=0; i<0U+p && *ws && (l=wctomb(mb, *ws++))>=0 && l<=0U+p-i; i+=l); in printf_core()
657 ws = arg.p; in printf_core()
658 for (i=0; i<0U+p && *ws && i+(l=wctomb(mb, *ws++))<=p; i+=l) in printf_core()
/ndk/tests/device/issue42891-boost-1_52/jni/boost/boost/test/utils/basic_cstring/
Dbasic_cstring.hpp573 static CharT ws[3] = { CharT(' '), CharT('\t'), CharT('\n') }; // !! wide case in default_trim_ex() local
575 return self_type( ws, 3 ); in default_trim_ex()
/ndk/sources/host-tools/sed-4.2.1/testsuite/
DMakefile.in911 @failed=0; all=0; xfail=0; xpass=0; skip=0; ws='[ ]'; \
922 *$$ws$$tst$$ws*) \
934 *$$ws$$tst$$ws*) \
/ndk/sources/cxx-stl/stlport/stlport/stl/
D_istream.h282 ws(basic_istream<_CharT, _Traits>& __istr) {
/ndk/sources/cxx-stl/llvm-libc++/libcxx/include/
Dcomplex1456 ws(__is);
1464 ws(__is);
1473 ws(__is);
Distream145 ws(basic_istream<charT,traits>& is);
1412 ws(basic_istream<_CharT, _Traits>& __is)

12