Home
last modified time | relevance | path

Searched refs:SV (Results 1 – 25 of 1040) sorted by relevance

12345678910>>...42

/external/cronet/buildtools/third_party/libc++/trunk/test/std/utilities/format/format.functions/
Dunicode.pass.cpp46 #define SV(S) MAKE_STRING_VIEW(CharT, S) macro
63 check(SV("* *"), SV("{:*^3}"), SV(" ")); in test_single_code_point_fill()
64 check(SV("*~*"), SV("{:*^3}"), SV("~")); in test_single_code_point_fill()
67 check(SV("*\u00a1*"), SV("{:*^3}"), SV("\u00a1")); // INVERTED EXCLAMATION MARK in test_single_code_point_fill()
68 check(SV("*\u07ff*"), SV("{:*^3}"), SV("\u07ff")); // NKO TAMAN SIGN in test_single_code_point_fill()
71 check(SV("*\u0800*"), SV("{:*^3}"), SV("\u0800")); // SAMARITAN LETTER ALAF in test_single_code_point_fill()
72 check(SV("*\ufffd*"), SV("{:*^3}"), SV("\ufffd")); // REPLACEMENT CHARACTER in test_single_code_point_fill()
75 check(SV("*\u1100*"), SV("{:*^4}"), SV("\u1100")); // HANGUL CHOSEONG KIYEOK in test_single_code_point_fill()
76 check(SV("*\u115f*"), SV("{:*^4}"), SV("\u115f")); // HANGUL CHOSEONG FILLER in test_single_code_point_fill()
78 check(SV("*\u2329*"), SV("{:*^4}"), SV("\u2329")); // LEFT-POINTING ANGLE BRACKET in test_single_code_point_fill()
[all …]
Dlocale-specific_form.pass.cpp102 #define SV(S) MAKE_STRING_VIEW(CharT, S) macro
250 test(SV("true"), SV("{:L}"), true); in test_bool()
251 test(SV("false"), SV("{:L}"), false); in test_bool()
253 test(SV("yes"), loc, SV("{:L}"), true); in test_bool()
254 test(SV("no"), loc, SV("{:L}"), false); in test_bool()
257 test(SV("yes"), SV("{:L}"), true); in test_bool()
258 test(SV("no"), SV("{:L}"), false); in test_bool()
260 test(SV("true"), std::locale(LOCALE_en_US_UTF_8), SV("{:L}"), true); in test_bool()
261 test(SV("false"), std::locale(LOCALE_en_US_UTF_8), SV("{:L}"), false); in test_bool()
266 test(SV("gültig"), loc_unicode, SV("{:L}"), true); in test_bool()
[all …]
Dformat_tests.h36 …result.push_back(SV("Invalid formatter type {:" #T "}")); … in invalid_types()
86 check(SV("hello world"), SV("hello {}"), world, universe); in format_test_string()
87 check(SV("hello world and universe"), SV("hello {} and {}"), world, universe); in format_test_string()
88 check(SV("hello world"), SV("hello {0}"), world, universe); in format_test_string()
89 check(SV("hello universe"), SV("hello {1}"), world, universe); in format_test_string()
90 check(SV("hello universe and world"), SV("hello {1} and {0}"), world, universe); in format_test_string()
92 check(SV("hello world"), SV("hello {:_>}"), world); in format_test_string()
93 check(SV("hello world "), SV("hello {:8}"), world); in format_test_string()
94 check(SV("hello world"), SV("hello {:>8}"), world); in format_test_string()
95 check(SV("hello ___world"), SV("hello {:_>8}"), world); in format_test_string()
[all …]
/external/cronet/buildtools/third_party/libc++/trunk/test/std/strings/basic.string/string.ops/string_compare/
Dsize_size_T_size_size.pass.cpp34 template <class S, class SV>
37 SV sv, typename S::size_type pos2, typename S::size_type n2, int x) in test()
39 static_assert((!std::is_same<S, SV>::value), ""); in test()
58 template <class S, class SV>
61 SV sv, typename S::size_type pos2, int x) in test_npos()
63 static_assert((!std::is_same<S, SV>::value), ""); in test_npos()
82 template <class S, class SV>
85 test(S(""), 0, 0, SV(""), 0, 0, 0); in test0()
86 test(S(""), 0, 0, SV(""), 0, 1, 0); in test0()
87 test(S(""), 0, 0, SV(""), 1, 0, 0); in test0()
[all …]
Dsize_size_string_view.pass.cpp30 template <class S, class SV>
33 SV sv, int x) in test()
53 template <class S, class SV>
56 test(S(""), 0, 0, SV(""), 0); in test0()
57 test(S(""), 0, 0, SV("abcde"), -5); in test0()
58 test(S(""), 0, 0, SV("abcdefghij"), -10); in test0()
59 test(S(""), 0, 0, SV("abcdefghijklmnopqrst"), -20); in test0()
60 test(S(""), 0, 1, SV(""), 0); in test0()
61 test(S(""), 0, 1, SV("abcde"), -5); in test0()
62 test(S(""), 0, 1, SV("abcdefghij"), -10); in test0()
[all …]
/external/libcxx/test/std/strings/basic.string/string.ops/string_compare/
Dsize_size_T_size_size.pass.cpp35 template <class S, class SV>
38 SV sv, typename S::size_type pos2, typename S::size_type n2, int x) in test()
40 static_assert((!std::is_same<S, SV>::value), ""); in test()
59 template <class S, class SV>
62 SV sv, typename S::size_type pos2, int x) in test_npos()
64 static_assert((!std::is_same<S, SV>::value), ""); in test_npos()
83 template <class S, class SV>
86 test(S(""), 0, 0, SV(""), 0, 0, 0); in test0()
87 test(S(""), 0, 0, SV(""), 0, 1, 0); in test0()
88 test(S(""), 0, 0, SV(""), 1, 0, 0); in test0()
[all …]
Dsize_size_string_view.pass.cpp31 template <class S, class SV>
34 SV sv, int x) in test()
54 template <class S, class SV>
57 test(S(""), 0, 0, SV(""), 0); in test0()
58 test(S(""), 0, 0, SV("abcde"), -5); in test0()
59 test(S(""), 0, 0, SV("abcdefghij"), -10); in test0()
60 test(S(""), 0, 0, SV("abcdefghijklmnopqrst"), -20); in test0()
61 test(S(""), 0, 1, SV(""), 0); in test0()
62 test(S(""), 0, 1, SV("abcde"), -5); in test0()
63 test(S(""), 0, 1, SV("abcdefghij"), -10); in test0()
[all …]
/external/cronet/buildtools/third_party/libc++/trunk/test/std/utilities/format/format.range/format.range.fmtset/
Dformat.functions.tests.h32 check(SV("{'a', 'b', 'c'}"), SV("{}"), input); in test_char_default()
34 check(SV("{a, b, c}"), SV("{::}"), input); in test_char_default()
36 check(SV("{'a', 'b', 'c'}"), SV("{::?}"), input); in test_char_default()
41 check(SV("{'a', 'b', 'c'} "), SV("{:20}"), input); in test_char_default()
42 check(SV("{'a', 'b', 'c'}*****"), SV("{:*<20}"), input); in test_char_default()
43 check(SV("__{'a', 'b', 'c'}___"), SV("{:_^20}"), input); in test_char_default()
44 check(SV("#####{'a', 'b', 'c'}"), SV("{:#>20}"), input); in test_char_default()
46 check(SV("{'a', 'b', 'c'} "), SV("{:{}}"), input, 20); in test_char_default()
47 check(SV("{'a', 'b', 'c'}*****"), SV("{:*<{}}"), input, 20); in test_char_default()
48 check(SV("__{'a', 'b', 'c'}___"), SV("{:_^{}}"), input, 20); in test_char_default()
[all …]
/external/cronet/buildtools/third_party/libc++/trunk/test/std/utilities/format/format.range/format.range.formatter/
Dformat.functions.tests.h36 check(SV("['H', 'e', 'l', 'l', 'o']"), SV("{}"), input); in test_char_default()
39 check(SV("[H, e, l, l, o]"), SV("{::}"), input); in test_char_default()
41 check(SV("['H', 'e', 'l', 'l', 'o']"), SV("{::?}"), input); in test_char_default()
46 check(SV("['H', 'e', 'l', 'l', 'o'] "), SV("{:30}"), input); in test_char_default()
47 check(SV("['H', 'e', 'l', 'l', 'o']*****"), SV("{:*<30}"), input); in test_char_default()
48 check(SV("__['H', 'e', 'l', 'l', 'o']___"), SV("{:_^30}"), input); in test_char_default()
49 check(SV("#####['H', 'e', 'l', 'l', 'o']"), SV("{:#>30}"), input); in test_char_default()
51 check(SV("['H', 'e', 'l', 'l', 'o'] "), SV("{:{}}"), input, 30); in test_char_default()
52 check(SV("['H', 'e', 'l', 'l', 'o']*****"), SV("{:*<{}}"), input, 30); in test_char_default()
53 check(SV("__['H', 'e', 'l', 'l', 'o']___"), SV("{:_^{}}"), input, 30); in test_char_default()
[all …]
/external/elfutils/backends/
Dsparc_cfi.c43 #define SV(n) DW_CFA_same_value, ULEB128_7 (n) in sparc_abi_cfi() macro
45 SV (0), SV (1), SV (2), SV (3), SV (4), SV (5), SV (6), SV (7), in sparc_abi_cfi()
47 SV (8), SV (9), SV (10), SV (11), SV (12), SV (13), SV (14), SV (15), in sparc_abi_cfi()
49 SV (16), SV (17), SV (18), SV (19), SV (20), SV (21), SV (22), SV (23), in sparc_abi_cfi()
51 SV (24), SV (25), SV (26), SV (27), SV (28), SV (29), SV (30), SV (31), in sparc_abi_cfi()
53 SV (32), SV (33), SV (34), SV (35), SV (36), SV (37), SV (38), SV (39), in sparc_abi_cfi()
54 SV (40), SV (41), SV (42), SV (43), SV (44), SV (45), SV (46), SV (47), in sparc_abi_cfi()
55 SV (48), SV (49), SV (50), SV (51), SV (52), SV (53), SV (54), SV (55), in sparc_abi_cfi()
56 SV (56), SV (57), SV (58), SV (59), SV (60), SV (61), SV (52), SV (63), in sparc_abi_cfi()
60 SV (64), SV (65), SV (66), SV (67), SV (68), SV (69), SV (70), SV (71), in sparc_abi_cfi()
[all …]
/external/cronet/buildtools/third_party/libc++/trunk/test/std/utilities/format/format.range/format.range.fmtmap/
Dformat.functions.tests.h29 check(SV("{'a': 'A', 'b': 'B', 'c': 'C'}"), SV("{}"), input); in test_char()
34 check(SV("{'a': 'A', 'b': 'B', 'c': 'C'} "), SV("{:35}"), input); in test_char()
35 check(SV("{'a': 'A', 'b': 'B', 'c': 'C'}*****"), SV("{:*<35}"), input); in test_char()
36 check(SV("__{'a': 'A', 'b': 'B', 'c': 'C'}___"), SV("{:_^35}"), input); in test_char()
37 check(SV("#####{'a': 'A', 'b': 'B', 'c': 'C'}"), SV("{:#>35}"), input); in test_char()
39 check(SV("{'a': 'A', 'b': 'B', 'c': 'C'} "), SV("{:{}}"), input, 35); in test_char()
40 check(SV("{'a': 'A', 'b': 'B', 'c': 'C'}*****"), SV("{:*<{}}"), input, 35); in test_char()
41 check(SV("__{'a': 'A', 'b': 'B', 'c': 'C'}___"), SV("{:_^{}}"), input, 35); in test_char()
42 check(SV("#####{'a': 'A', 'b': 'B', 'c': 'C'}"), SV("{:#>{}}"), input, 35); in test_char()
44 …check_exception("The format-spec range-fill field contains an invalid character", SV("{:}<}"), inp… in test_char()
[all …]
/external/cronet/buildtools/third_party/libc++/trunk/test/std/containers/container.adaptors/container.adaptors.format/
Dformat.functions.tests.h32 check(SV("['H', 'e', 'l', 'l', 'o']"), SV("{}"), input); in test_char_default()
35 check(SV("[H, e, l, l, o]"), SV("{::}"), input); in test_char_default()
37 check(SV("['H', 'e', 'l', 'l', 'o']"), SV("{::?}"), input); in test_char_default()
42 check(SV("['H', 'e', 'l', 'l', 'o'] "), SV("{:30}"), input); in test_char_default()
43 check(SV("['H', 'e', 'l', 'l', 'o']*****"), SV("{:*<30}"), input); in test_char_default()
44 check(SV("__['H', 'e', 'l', 'l', 'o']___"), SV("{:_^30}"), input); in test_char_default()
45 check(SV("#####['H', 'e', 'l', 'l', 'o']"), SV("{:#>30}"), input); in test_char_default()
47 check(SV("['H', 'e', 'l', 'l', 'o'] "), SV("{:{}}"), input, 30); in test_char_default()
48 check(SV("['H', 'e', 'l', 'l', 'o']*****"), SV("{:*<{}}"), input, 30); in test_char_default()
49 check(SV("__['H', 'e', 'l', 'l', 'o']___"), SV("{:_^{}}"), input, 30); in test_char_default()
[all …]
/external/libcxx/test/std/strings/basic.string/string.modifiers/string_replace/
Dsize_size_T_size_size.pass.cpp26 template <class S, class SV>
29 SV sv, typename S::size_type pos2, typename S::size_type n2, in test()
33 static_assert((!std::is_same<S, SV>::value), ""); in test()
37 static_assert(sizeof(SizeT) == sizeof(typename SV::size_type), ""); in test()
67 template <class S, class SV>
70 SV sv, typename S::size_type pos2, in test_npos()
74 static_assert((!std::is_same<S, SV>::value), ""); in test_npos()
104 template <class S, class SV>
107 test(S(""), 0, 0, SV(""), 0, 0, S("")); in test0()
108 test(S(""), 0, 0, SV(""), 0, 1, S("")); in test0()
[all …]
Dsize_size_string_view.pass.cpp23 template <class S, class SV>
25 test(S s, typename S::size_type pos1, typename S::size_type n1, SV sv, S expected) in test()
55 template <class S, class SV>
58 test(S(""), 0, 0, SV(""), S("")); in test0()
59 test(S(""), 0, 0, SV("12345"), S("12345")); in test0()
60 test(S(""), 0, 0, SV("1234567890"), S("1234567890")); in test0()
61 test(S(""), 0, 0, SV("12345678901234567890"), S("12345678901234567890")); in test0()
62 test(S(""), 0, 1, SV(""), S("")); in test0()
63 test(S(""), 0, 1, SV("12345"), S("12345")); in test0()
64 test(S(""), 0, 1, SV("1234567890"), S("1234567890")); in test0()
[all …]
Diter_iter_string_view.pass.cpp22 template <class S, class SV>
24 test(S s, typename S::size_type pos1, typename S::size_type n1, SV sv, S expected) in test()
37 template <class S, class SV>
40 test(S(""), 0, 0, SV(""), S("")); in test0()
41 test(S(""), 0, 0, SV("12345"), S("12345")); in test0()
42 test(S(""), 0, 0, SV("1234567890"), S("1234567890")); in test0()
43 test(S(""), 0, 0, SV("12345678901234567890"), S("12345678901234567890")); in test0()
44 test(S("abcde"), 0, 0, SV(""), S("abcde")); in test0()
45 test(S("abcde"), 0, 0, SV("12345"), S("12345abcde")); in test0()
46 test(S("abcde"), 0, 0, SV("1234567890"), S("1234567890abcde")); in test0()
[all …]
/external/cronet/buildtools/third_party/libc++/trunk/test/std/strings/basic.string/string.modifiers/string_replace/
Dsize_size_T_size_size.pass.cpp25 template <class S, class SV>
28 SV sv, typename S::size_type pos2, typename S::size_type n2, in test()
32 static_assert((!std::is_same<S, SV>::value), ""); in test()
36 static_assert(sizeof(SizeT) == sizeof(typename SV::size_type), ""); in test()
66 template <class S, class SV>
69 SV sv, typename S::size_type pos2, in test_npos()
73 static_assert((!std::is_same<S, SV>::value), ""); in test_npos()
103 template <class S, class SV>
106 test(S(""), 0, 0, SV(""), 0, 0, S("")); in test0()
107 test(S(""), 0, 0, SV(""), 0, 1, S("")); in test0()
[all …]
Dsize_size_string_view.pass.cpp22 template <class S, class SV>
24 test(S s, typename S::size_type pos1, typename S::size_type n1, SV sv, S expected) in test()
54 template <class S, class SV>
57 test(S(""), 0, 0, SV(""), S("")); in test0()
58 test(S(""), 0, 0, SV("12345"), S("12345")); in test0()
59 test(S(""), 0, 0, SV("1234567890"), S("1234567890")); in test0()
60 test(S(""), 0, 0, SV("12345678901234567890"), S("12345678901234567890")); in test0()
61 test(S(""), 0, 1, SV(""), S("")); in test0()
62 test(S(""), 0, 1, SV("12345"), S("12345")); in test0()
63 test(S(""), 0, 1, SV("1234567890"), S("1234567890")); in test0()
[all …]
Diter_iter_string_view.pass.cpp21 template <class S, class SV>
23 test(S s, typename S::size_type pos1, typename S::size_type n1, SV sv, S expected) in test()
36 template <class S, class SV>
39 test(S(""), 0, 0, SV(""), S("")); in test0()
40 test(S(""), 0, 0, SV("12345"), S("12345")); in test0()
41 test(S(""), 0, 0, SV("1234567890"), S("1234567890")); in test0()
42 test(S(""), 0, 0, SV("12345678901234567890"), S("12345678901234567890")); in test0()
43 test(S("abcde"), 0, 0, SV(""), S("abcde")); in test0()
44 test(S("abcde"), 0, 0, SV("12345"), S("12345abcde")); in test0()
45 test(S("abcde"), 0, 0, SV("1234567890"), S("1234567890abcde")); in test0()
[all …]
/external/cronet/buildtools/third_party/libc++/trunk/test/std/strings/basic.string/string.modifiers/string_insert/
Dsize_T_size_size.pass.cpp23 template <class S, class SV>
25 test(S s, typename S::size_type pos1, SV sv, typename S::size_type pos2, in test()
28 static_assert((!std::is_same<S, SV>::value), ""); in test()
54 template <class S, class SV>
56 test_npos(S s, typename S::size_type pos1, SV sv, typename S::size_type pos2, S expected) in test_npos()
58 static_assert((!std::is_same<S, SV>::value), ""); in test_npos()
85 template <class S, class SV>
88 test(S(""), 0, SV(""), 0, 0, S("")); in test0()
89 test(S(""), 0, SV(""), 0, 1, S("")); in test0()
90 test(S(""), 0, SV(""), 1, 0, S("can't happen")); in test0()
[all …]
/external/libcxx/test/std/strings/basic.string/string.modifiers/string_insert/
Dsize_T_size_size.pass.cpp24 template <class S, class SV>
26 test(S s, typename S::size_type pos1, SV sv, typename S::size_type pos2, in test()
29 static_assert((!std::is_same<S, SV>::value), ""); in test()
55 template <class S, class SV>
57 test_npos(S s, typename S::size_type pos1, SV sv, typename S::size_type pos2, S expected) in test_npos()
59 static_assert((!std::is_same<S, SV>::value), ""); in test_npos()
86 template <class S, class SV>
89 test(S(""), 0, SV(""), 0, 0, S("")); in test0()
90 test(S(""), 0, SV(""), 0, 1, S("")); in test0()
91 test(S(""), 0, SV(""), 1, 0, S("can't happen")); in test0()
[all …]
Dstring_view.pass.cpp22 template <class S, class SV>
24 test(S s, typename S::size_type pos, SV sv, S expected) in test()
55 typedef std::string_view SV; in main() typedef
56 test(S(""), 0, SV(""), S("")); in main()
57 test(S(""), 0, SV("12345"), S("12345")); in main()
58 test(S(""), 0, SV("1234567890"), S("1234567890")); in main()
59 test(S(""), 0, SV("12345678901234567890"), S("12345678901234567890")); in main()
60 test(S(""), 1, SV(""), S("can't happen")); in main()
61 test(S(""), 1, SV("12345"), S("can't happen")); in main()
62 test(S(""), 1, SV("1234567890"), S("can't happen")); in main()
[all …]
/external/cronet/buildtools/third_party/libc++/trunk/test/std/time/time.syn/
Dformatter.duration.pass.cpp48 check(SV("1as"), SV("{}"), std::chrono::duration<int, std::atto>(1)); in test_no_chrono_specs()
49 check(SV("1fs"), SV("{}"), std::chrono::duration<int, std::femto>(1)); in test_no_chrono_specs()
50 check(SV("1ps"), SV("{}"), std::chrono::duration<int, std::pico>(1)); in test_no_chrono_specs()
51 check(SV("1ns"), SV("{}"), 1ns); in test_no_chrono_specs()
53 check(SV("1\u00b5s"), SV("{}"), 1us); in test_no_chrono_specs()
55 check(SV("1us"), SV("{}"), 1us); in test_no_chrono_specs()
57 check(SV("1ms"), SV("{}"), 1ms); in test_no_chrono_specs()
58 check(SV("1cs"), SV("{}"), std::chrono::duration<int, std::centi>(1)); in test_no_chrono_specs()
59 check(SV("1ds"), SV("{}"), std::chrono::duration<int, std::deci>(1)); in test_no_chrono_specs()
61 check(SV("1s"), SV("{}"), 1s); in test_no_chrono_specs()
[all …]
/external/cronet/buildtools/third_party/libc++/trunk/test/std/utilities/format/format.tuple/
Dformat.functions.tests.h21 static constexpr basic_string_view<CharT> color_names[] = {SV("black"), SV("red"), SV("gold")};
32 check(SV("(42, 99)"), SV("{}"), input);
35 check(SV("(42, 99) "), SV("{:13}"), input);
36 check(SV("(42, 99)*****"), SV("{:*<13}"), input);
37 check(SV("__(42, 99)___"), SV("{:_^13}"), input);
38 check(SV("#####(42, 99)"), SV("{:#>13}"), input);
40 check(SV("(42, 99) "), SV("{:{}}"), input, 13);
41 check(SV("(42, 99)*****"), SV("{:*<{}}"), input, 13);
42 check(SV("__(42, 99)___"), SV("{:_^{}}"), input, 13);
43 check(SV("#####(42, 99)"), SV("{:#>{}}"), input, 13);
[all …]
/external/cronet/buildtools/third_party/libc++/trunk/test/std/utilities/format/format.range/format.range.fmtstr/
Dformat.functions.tests.h61 check(SV("hello"), SV("{}"), input); in test_string()
64 check(SV("hello "), SV("{:10}"), input); in test_string()
65 check(SV("hello*****"), SV("{:*<10}"), input); in test_string()
66 check(SV("__hello___"), SV("{:_^10}"), input); in test_string()
67 check(SV(":::::hello"), SV("{::>10}"), input); in test_string()
69 check(SV("hello "), SV("{:{}}"), input, 10); in test_string()
70 check(SV("hello*****"), SV("{:*<{}}"), input, 10); in test_string()
71 check(SV("__hello___"), SV("{:_^{}}"), input, 10); in test_string()
72 check(SV(":::::hello"), SV("{::>{}}"), input, 10); in test_string()
74 check_exception("The format-spec fill field contains an invalid character", SV("{:}<}"), input); in test_string()
[all …]
/external/libcxx/test/std/strings/basic.string/string.ops/string_rfind/
Dstring_view_size.pass.cpp19 template <class S, class SV>
21 test(const S& s, SV sv, typename S::size_type pos, typename S::size_type x) in test()
28 template <class S, class SV>
30 test(const S& s, SV sv, typename S::size_type x) in test()
37 template <class S, class SV>
40 test(S(""), SV(""), 0, 0); in test0()
41 test(S(""), SV("abcde"), 0, S::npos); in test0()
42 test(S(""), SV("abcdeabcde"), 0, S::npos); in test0()
43 test(S(""), SV("abcdeabcdeabcdeabcde"), 0, S::npos); in test0()
44 test(S(""), SV(""), 1, 0); in test0()
[all …]

12345678910>>...42