Home
last modified time | relevance | path

Searched refs:L (Results 1 – 25 of 369) sorted by relevance

12345678910>>...15

/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/re/re.traits/
Dlookup_collatename.pass.cpp107 test(L"NUL", std::wstring(L"\x00", 1)); in main()
108 test(L"alert", std::wstring(L"\x07")); in main()
109 test(L"backspace", std::wstring(L"\x08")); in main()
110 test(L"tab", std::wstring(L"\x09")); in main()
111 test(L"carriage-return", std::wstring(L"\x0D")); in main()
112 test(L"newline", std::wstring(L"\x0A")); in main()
113 test(L"vertical-tab", std::wstring(L"\x0B")); in main()
114 test(L"form-feed", std::wstring(L"\x0C")); in main()
115 test(L"space", std::wstring(L" ")); in main()
116 test(L"exclamation-mark", std::wstring(L"!")); in main()
[all …]
Dtranslate_nocase.pass.cpp56 assert(t.translate_nocase(L' ') == L' '); in main()
57 assert(t.translate_nocase(L'A') == L'a'); in main()
58 assert(t.translate_nocase(L'\x07') == L'\x07'); in main()
59 assert(t.translate_nocase(L'.') == L'.'); in main()
60 assert(t.translate_nocase(L'a') == L'a'); in main()
61 assert(t.translate_nocase(L'1') == L'1'); in main()
62 assert(t.translate_nocase(L'\xDA') == L'\xDA'); in main()
63 assert(t.translate_nocase(L'\xFA') == L'\xFA'); in main()
71 assert(t.translate_nocase(L' ') == L' '); in main()
72 assert(t.translate_nocase(L'A') == L'a'); in main()
[all …]
Dlookup_classname.pass.cpp122 test(L"d", std::ctype_base::digit); in main()
123 test(L"D", std::ctype_base::digit); in main()
124 test(L"d", std::ctype_base::digit, true); in main()
125 test(L"D", std::ctype_base::digit, true); in main()
127 test(L"w", std::regex_traits<wchar_t>::__regex_word | std::ctype_base::alnum in main()
129 test(L"W", std::regex_traits<wchar_t>::__regex_word | std::ctype_base::alnum in main()
131 test(L"w", std::regex_traits<wchar_t>::__regex_word | std::ctype_base::alnum in main()
133 test(L"W", std::regex_traits<wchar_t>::__regex_word | std::ctype_base::alnum in main()
136 test(L"s", std::ctype_base::space); in main()
137 test(L"S", std::ctype_base::space); in main()
[all …]
Disctype.pass.cpp153 std::wstring s(L"w"); in main()
154 assert( t.isctype(L'_', t.lookup_classname(s.begin(), s.end()))); in main()
155 assert( t.isctype(L'a', t.lookup_classname(s.begin(), s.end()))); in main()
156 assert( t.isctype(L'Z', t.lookup_classname(s.begin(), s.end()))); in main()
157 assert( t.isctype(L'5', t.lookup_classname(s.begin(), s.end()))); in main()
158 assert(!t.isctype(L' ', t.lookup_classname(s.begin(), s.end()))); in main()
159 assert(!t.isctype(L'-', t.lookup_classname(s.begin(), s.end()))); in main()
160 assert(!t.isctype(L'@', t.lookup_classname(s.begin(), s.end()))); in main()
162 s = L"alnum"; in main()
163 assert(!t.isctype(L'_', t.lookup_classname(s.begin(), s.end()))); in main()
[all …]
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/strings/char.traits/char.traits.specializations/char.traits.specializations.wchar.t/
Dcompare.pass.cpp21 assert(std::char_traits<wchar_t>::compare(L"", L"", 0) == 0); in main()
23 assert(std::char_traits<wchar_t>::compare(L"1", L"1", 1) == 0); in main()
24 assert(std::char_traits<wchar_t>::compare(L"1", L"2", 1) < 0); in main()
25 assert(std::char_traits<wchar_t>::compare(L"2", L"1", 1) > 0); in main()
27 assert(std::char_traits<wchar_t>::compare(L"12", L"12", 2) == 0); in main()
28 assert(std::char_traits<wchar_t>::compare(L"12", L"13", 2) < 0); in main()
29 assert(std::char_traits<wchar_t>::compare(L"12", L"22", 2) < 0); in main()
30 assert(std::char_traits<wchar_t>::compare(L"13", L"12", 2) > 0); in main()
31 assert(std::char_traits<wchar_t>::compare(L"22", L"12", 2) > 0); in main()
33 assert(std::char_traits<wchar_t>::compare(L"123", L"123", 3) == 0); in main()
[all …]
/ndk/sources/android/support/tests/
Dwchar_unittest.cc41 static const wchar_t kString[] = L"abcda"; in TEST()
42 EXPECT_EQ(kString + 0, wcschr(kString, L'a')); in TEST()
43 EXPECT_EQ(kString + 1, wcschr(kString, L'b')); in TEST()
44 EXPECT_EQ(kString + 2, wcschr(kString, L'c')); in TEST()
45 EXPECT_EQ(kString + 3, wcschr(kString, L'd')); in TEST()
46 EXPECT_FALSE(wcschr(kString, L'e')); in TEST()
47 EXPECT_EQ(kString + 5, wcschr(kString, L'\0')); in TEST()
51 static const wchar_t kString[] = L"abcda"; in TEST()
52 EXPECT_EQ(kString + 4, wcsrchr(kString, L'a')); in TEST()
53 EXPECT_EQ(kString + 1, wcsrchr(kString, L'b')); in TEST()
[all …]
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/localization/locale.categories/category.ctype/locale.ctype.byname/
Dtolower_1.pass.cpp64 assert(f.tolower(L' ') == L' '); in main()
65 assert(f.tolower(L'A') == L'a'); in main()
66 assert(f.tolower(L'\x07') == L'\x07'); in main()
67 assert(f.tolower(L'.') == L'.'); in main()
68 assert(f.tolower(L'a') == L'a'); in main()
69 assert(f.tolower(L'1') == L'1'); in main()
70 assert(f.tolower(L'\xDA') == L'\xFA'); in main()
71 assert(f.tolower(L'\xFA') == L'\xFA'); in main()
80 assert(f.tolower(L' ') == L' '); in main()
81 assert(f.tolower(L'A') == L'a'); in main()
[all …]
Dtoupper_1.pass.cpp64 assert(f.toupper(L' ') == L' '); in main()
65 assert(f.toupper(L'A') == L'A'); in main()
66 assert(f.toupper(L'\x07') == L'\x07'); in main()
67 assert(f.toupper(L'.') == L'.'); in main()
68 assert(f.toupper(L'a') == L'A'); in main()
69 assert(f.toupper(L'1') == L'1'); in main()
70 assert(f.toupper(L'\xDA') == L'\xDA'); in main()
71 assert(f.toupper(L'\xFA') == L'\xDA'); in main()
80 assert(f.toupper(L' ') == L' '); in main()
81 assert(f.toupper(L'A') == L'A'); in main()
[all …]
Dis_1.pass.cpp30 assert(f.is(F::space, L' ')); in main()
31 assert(!f.is(F::space, L'A')); in main()
33 assert(f.is(F::print, L' ')); in main()
34 assert(!f.is(F::print, L'\x07')); in main()
36 assert(f.is(F::cntrl, L'\x07')); in main()
37 assert(!f.is(F::cntrl, L' ')); in main()
39 assert(f.is(F::upper, L'A')); in main()
40 assert(!f.is(F::upper, L'a')); in main()
42 assert(f.is(F::lower, L'a')); in main()
43 assert(!f.is(F::lower, L'A')); in main()
[all …]
Dnarrow_1.pass.cpp29 assert(f.narrow(L' ', '*') == ' '); in main()
30 assert(f.narrow(L'A', '*') == 'A'); in main()
31 assert(f.narrow(L'\x07', '*') == '\x07'); in main()
32 assert(f.narrow(L'.', '*') == '.'); in main()
33 assert(f.narrow(L'a', '*') == 'a'); in main()
34 assert(f.narrow(L'1', '*') == '1'); in main()
35 assert(f.narrow(L'\xDA', '*') == '\xDA'); in main()
44 assert(f.narrow(L' ', '*') == ' '); in main()
45 assert(f.narrow(L'A', '*') == 'A'); in main()
46 assert(f.narrow(L'\x07', '*') == '\x07'); in main()
[all …]
Dwiden_1.pass.cpp32 assert(f.widen(' ') == L' '); in main()
33 assert(f.widen('A') == L'A'); in main()
34 assert(f.widen('\x07') == L'\x07'); in main()
35 assert(f.widen('.') == L'.'); in main()
36 assert(f.widen('a') == L'a'); in main()
37 assert(f.widen('1') == L'1'); in main()
47 assert(f.widen(' ') == L' '); in main()
48 assert(f.widen('A') == L'A'); in main()
49 assert(f.widen('\x07') == L'\x07'); in main()
50 assert(f.widen('.') == L'.'); in main()
[all …]
Dtoupper_many.pass.cpp66 std::wstring in(L"\xFA A\x07.a1"); in main()
69 assert(in[0] == L'\xDA'); in main()
70 assert(in[1] == L' '); in main()
71 assert(in[2] == L'A'); in main()
72 assert(in[3] == L'\x07'); in main()
73 assert(in[4] == L'.'); in main()
74 assert(in[5] == L'A'); in main()
75 assert(in[6] == L'1'); in main()
83 std::wstring in(L"\xFA A\x07.a1"); in main()
86 assert(in[0] == L'\xFA'); in main()
[all …]
Dtolower_many.pass.cpp66 std::wstring in(L"\xDA A\x07.a1"); in main()
69 assert(in[0] == L'\xFA'); in main()
70 assert(in[1] == L' '); in main()
71 assert(in[2] == L'a'); in main()
72 assert(in[3] == L'\x07'); in main()
73 assert(in[4] == L'.'); in main()
74 assert(in[5] == L'a'); in main()
75 assert(in[6] == L'1'); in main()
83 std::wstring in(L"\xDA A\x07.a1"); in main()
86 assert(in[0] == L'\xDA'); in main()
[all …]
Dwiden_many.pass.cpp36 assert(v[0] == L' '); in main()
37 assert(v[1] == L'A'); in main()
38 assert(v[2] == L'\x07'); in main()
39 assert(v[3] == L'.'); in main()
40 assert(v[4] == L'a'); in main()
41 assert(v[5] == L'1'); in main()
54 assert(v[0] == L' '); in main()
55 assert(v[1] == L'A'); in main()
56 assert(v[2] == L'\x07'); in main()
57 assert(v[3] == L'.'); in main()
[all …]
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/input.output/string.streams/stringbuf/stringbuf.virtuals/
Doverflow.pass.cpp66 testbuf<wchar_t> sb(L"abc"); in main()
67 assert(sb.sputc(L'1') == L'1'); in main()
68 assert(sb.str() == L"1bc"); in main()
69 assert(sb.sputc(L'2') == L'2'); in main()
70 assert(sb.str() == L"12c"); in main()
71 assert(sb.sputc(L'3') == L'3'); in main()
72 assert(sb.str() == L"123"); in main()
73 assert(sb.sputc(L'4') == L'4'); in main()
74 assert(sb.str() == L"1234"); in main()
75 assert(sb.sputc(L'5') == L'5'); in main()
[all …]
Dpbackfail.pass.cpp66 testbuf<wchar_t> sb(L"123", std::ios_base::in); in main()
67 assert(sb.sgetc() == L'1'); in main()
68 assert(sb.snextc() == L'2'); in main()
69 assert(sb.snextc() == L'3'); in main()
70 assert(sb.sgetc() == L'3'); in main()
72 assert(sb.pbackfail(L'3') == L'3'); in main()
73 assert(sb.pbackfail(L'3') == std::char_traits<wchar_t>::eof()); in main()
74 assert(sb.pbackfail(L'2') == L'2'); in main()
77 assert(sb.str() == L"123"); in main()
80 testbuf<wchar_t> sb(L"123"); in main()
[all …]
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/depr/depr.c.headers/
Dwchar_h.pass.cpp45 static_assert((std::is_same<decltype(fwprintf(fp, L"")), int>::value), ""); in main()
46 static_assert((std::is_same<decltype(fwscanf(fp, L"")), int>::value), ""); in main()
47 static_assert((std::is_same<decltype(swprintf(ws, s, L"")), int>::value), ""); in main()
48 static_assert((std::is_same<decltype(swscanf(L"", L"")), int>::value), ""); in main()
49 static_assert((std::is_same<decltype(vfwprintf(fp, L"", va)), int>::value), ""); in main()
50 static_assert((std::is_same<decltype(vfwscanf(fp, L"", va)), int>::value), ""); in main()
51 static_assert((std::is_same<decltype(vswprintf(ws, s, L"", va)), int>::value), ""); in main()
52 static_assert((std::is_same<decltype(vswscanf(L"", L"", va)), int>::value), ""); in main()
53 static_assert((std::is_same<decltype(vwprintf(L"", va)), int>::value), ""); in main()
54 static_assert((std::is_same<decltype(vwscanf(L"", va)), int>::value), ""); in main()
[all …]
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/localization/locale.categories/category.ctype/locale.ctype/locale.ctype.members/
Dis_1.pass.cpp26 assert(f.is(F::space, L' ')); in main()
27 assert(!f.is(F::space, L'A')); in main()
29 assert(f.is(F::print, L' ')); in main()
30 assert(!f.is(F::print, L'\x07')); in main()
32 assert(f.is(F::cntrl, L'\x07')); in main()
33 assert(!f.is(F::cntrl, L' ')); in main()
35 assert(f.is(F::upper, L'A')); in main()
36 assert(!f.is(F::upper, L'a')); in main()
38 assert(f.is(F::lower, L'a')); in main()
39 assert(!f.is(F::lower, L'A')); in main()
[all …]
Dtoupper_1.pass.cpp26 assert(f.toupper(L' ') == L' '); in main()
27 assert(f.toupper(L'A') == L'A'); in main()
28 assert(f.toupper(L'\x07') == L'\x07'); in main()
29 assert(f.toupper(L'.') == L'.'); in main()
30 assert(f.toupper(L'a') == L'A'); in main()
31 assert(f.toupper(L'1') == L'1'); in main()
Dtolower_1.pass.cpp26 assert(f.tolower(L' ') == L' '); in main()
27 assert(f.tolower(L'A') == L'a'); in main()
28 assert(f.tolower(L'\x07') == L'\x07'); in main()
29 assert(f.tolower(L'.') == L'.'); in main()
30 assert(f.tolower(L'a') == L'a'); in main()
31 assert(f.tolower(L'1') == L'1'); in main()
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/strings/c.strings/
Dcwchar.pass.cpp45 static_assert((std::is_same<decltype(std::fwprintf(fp, L"")), int>::value), ""); in main()
46 static_assert((std::is_same<decltype(std::fwscanf(fp, L"")), int>::value), ""); in main()
47 static_assert((std::is_same<decltype(std::swprintf(ws, s, L"")), int>::value), ""); in main()
48 static_assert((std::is_same<decltype(std::swscanf(L"", L"")), int>::value), ""); in main()
49 static_assert((std::is_same<decltype(std::vfwprintf(fp, L"", va)), int>::value), ""); in main()
50 static_assert((std::is_same<decltype(std::vfwscanf(fp, L"", va)), int>::value), ""); in main()
51 static_assert((std::is_same<decltype(std::vswprintf(ws, s, L"", va)), int>::value), ""); in main()
52 static_assert((std::is_same<decltype(std::vswscanf(L"", L"", va)), int>::value), ""); in main()
53 static_assert((std::is_same<decltype(std::vwprintf(L"", va)), int>::value), ""); in main()
54 static_assert((std::is_same<decltype(std::vwscanf(L"", va)), int>::value), ""); in main()
[all …]
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/strings/basic.string/string.nonmembers/string.io/
Dget_line_delim.pass.cpp42 std::wistringstream in(L" abc* def** ghij"); in main()
43 std::wstring s(L"initial text"); in main()
44 getline(in, s, L'*'); in main()
46 assert(s == L" abc"); in main()
47 getline(in, s, L'*'); in main()
49 assert(s == L" def"); in main()
50 getline(in, s, L'*'); in main()
52 assert(s == L""); in main()
53 getline(in, s, L'*'); in main()
55 assert(s == L" ghij"); in main()
[all …]
Dstream_extract.pass.cpp48 std::wistringstream in(L"a bc defghij"); in main()
49 std::wstring s(L"initial text"); in main()
52 assert(s == L"a"); in main()
53 assert(in.peek() == L' '); in main()
56 assert(s == L"bc"); in main()
57 assert(in.peek() == L' '); in main()
61 assert(s == L"def"); in main()
62 assert(in.peek() == L'g'); in main()
65 assert(s == L"ghij"); in main()
95 std::wistringstream in(L"a bc defghij"); in main()
[all …]
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/strings/basic.string/string.cons/
Dinitializer_list.pass.cpp29 s = {L'a', L'b', L'c'}; in main()
30 assert(s == L"abc"); in main()
41 s = {L'a', L'b', L'c'}; in main()
42 assert(s == L"abc"); in main()
/ndk/sources/host-tools/toolbox/
Decho_win.c52 if (argc > 1 && argv[1][0] == L'-' && argv[1][1] == L'n' && argv[1][2] == L'\0') { in main()
58 const TCHAR* comma = L""; in main()
60 _tprintf(L"%s%s", comma, argv[1]); in main()
61 comma = L" "; in main()
67 _tprintf(L"\n"); in main()

12345678910>>...15