| /llvm-project-15.0.7/libcxx/test/std/strings/basic.string/string.modifiers/string_replace/ |
| H A D | size_size_string_size_size.pass.cpp | 96 test(S(""), 0, 0, S(""), 0, 0, S("")); in test0() 97 test(S(""), 0, 0, S(""), 0, 1, S("")); in test0() 99 test(S(""), 0, 0, S("12345"), 0, 0, S("")); in test0() 100 test(S(""), 0, 0, S("12345"), 0, 1, S("1")); in test0() 105 test(S(""), 0, 0, S("12345"), 1, 0, S("")); in test0() 111 test(S(""), 0, 0, S("12345"), 2, 0, S("")); in test0() 116 test(S(""), 0, 0, S("12345"), 4, 0, S("")); in test0() 119 test(S(""), 0, 0, S("12345"), 5, 0, S("")); in test0() 120 test(S(""), 0, 0, S("12345"), 5, 1, S("")); in test0() 170 test(S(""), 0, 1, S(""), 0, 0, S("")); in test0() [all …]
|
| H A D | iter_iter_pointer_size.pass.cpp | 23 test(S s, typename S::size_type pos1, typename S::size_type n1, const typename S::value_type* str, in test() 24 typename S::size_type n2, S expected) in test() 40 test(S(""), 0, 0, "", 0, S("")); in test0() 41 test(S(""), 0, 0, "12345", 0, S("")); in test0() 42 test(S(""), 0, 0, "12345", 1, S("1")); in test0() 43 test(S(""), 0, 0, "12345", 2, S("12")); in test0() 44 test(S(""), 0, 0, "12345", 4, S("1234")); in test0() 45 test(S(""), 0, 0, "12345", 5, S("12345")); in test0() 46 test(S(""), 0, 0, "1234567890", 0, S("")); in test0() 104 test(S("abcde"), 0, 4, "", 0, S("e")); in test0() [all …]
|
| H A D | size_size_pointer_size.pass.cpp | 24 test(S s, typename S::size_type pos, typename S::size_type n1, in test() 59 test(S(""), 0, 0, "", 0, S("")); in test0() 60 test(S(""), 0, 0, "12345", 0, S("")); in test0() 61 test(S(""), 0, 0, "12345", 1, S("1")); in test0() 62 test(S(""), 0, 0, "12345", 2, S("12")); in test0() 63 test(S(""), 0, 0, "12345", 4, S("1234")); in test0() 64 test(S(""), 0, 0, "12345", 5, S("12345")); in test0() 75 test(S(""), 0, 1, "", 0, S("")); in test0() 76 test(S(""), 0, 1, "12345", 0, S("")); in test0() 77 test(S(""), 0, 1, "12345", 1, S("1")); in test0() [all …]
|
| H A D | size_size_string.pass.cpp | 24 test(S s, typename S::size_type pos1, typename S::size_type n1, S str, S expected) in test() 57 test(S(""), 0, 0, S(""), S("")); in test0() 58 test(S(""), 0, 0, S("12345"), S("12345")); in test0() 61 test(S(""), 0, 1, S(""), S("")); in test0() 62 test(S(""), 0, 1, S("12345"), S("12345")); in test0() 73 test(S("abcde"), 0, 1, S(""), S("bcde")); in test0() 77 test(S("abcde"), 0, 2, S(""), S("cde")); in test0() 81 test(S("abcde"), 0, 4, S(""), S("e")); in test0() 85 test(S("abcde"), 0, 5, S(""), S("")); in test0() 89 test(S("abcde"), 0, 6, S(""), S("")); in test0() [all …]
|
| H A D | iter_iter_string.pass.cpp | 23 test(S s, typename S::size_type pos1, typename S::size_type n1, S str, S expected) in test() 39 test(S(""), 0, 0, S(""), S("")); in test0() 40 test(S(""), 0, 0, S("12345"), S("12345")); in test0() 43 test(S("abcde"), 0, 0, S(""), S("abcde")); in test0() 47 test(S("abcde"), 0, 1, S(""), S("bcde")); in test0() 51 test(S("abcde"), 0, 2, S(""), S("cde")); in test0() 55 test(S("abcde"), 0, 4, S(""), S("e")); in test0() 59 test(S("abcde"), 0, 5, S(""), S("")); in test0() 71 test(S("abcde"), 1, 2, S(""), S("ade")); in test0() 75 test(S("abcde"), 1, 3, S(""), S("ae")); in test0() [all …]
|
| H A D | size_size_pointer.pass.cpp | 24 test(S s, typename S::size_type pos, typename S::size_type n1, in test() 58 test(S(""), 0, 0, "", S("")); in test0() 59 test(S(""), 0, 0, "12345", S("12345")); in test0() 62 test(S(""), 0, 1, "", S("")); in test0() 63 test(S(""), 0, 1, "12345", S("12345")); in test0() 78 test(S("abcde"), 0, 2, "", S("cde")); in test0() 82 test(S("abcde"), 0, 4, "", S("e")); in test0() 86 test(S("abcde"), 0, 5, "", S("")); in test0() 90 test(S("abcde"), 0, 6, "", S("")); in test0() 110 test(S("abcde"), 1, 4, "", S("a")); in test0() [all …]
|
| H A D | size_size_size_char.pass.cpp | 24 test(S s, typename S::size_type pos, typename S::size_type n1, in test() 59 test(S(""), 0, 0, 0, '2', S("")); in test0() 60 test(S(""), 0, 0, 5, '2', S("22222")); in test0() 63 test(S(""), 0, 1, 0, '2', S("")); in test0() 64 test(S(""), 0, 1, 5, '2', S("22222")); in test0() 79 test(S("abcde"), 0, 2, 0, '2', S("cde")); in test0() 83 test(S("abcde"), 0, 4, 0, '2', S("e")); in test0() 87 test(S("abcde"), 0, 5, 0, '2', S("")); in test0() 91 test(S("abcde"), 0, 6, 0, '2', S("")); in test0() 111 test(S("abcde"), 1, 4, 0, '2', S("a")); in test0() [all …]
|
| H A D | size_size_T_size_size.pass.cpp | 27 test(S s, typename S::size_type pos1, typename S::size_type n1, in test() 68 test_npos(S s, typename S::size_type pos1, typename S::size_type n1, in test_npos() 106 test(S(""), 0, 0, SV(""), 0, 0, S("")); in test0() 107 test(S(""), 0, 0, SV(""), 0, 1, S("")); in test0() 109 test(S(""), 0, 0, SV("12345"), 0, 0, S("")); in test0() 115 test(S(""), 0, 0, SV("12345"), 1, 0, S("")); in test0() 121 test(S(""), 0, 0, SV("12345"), 2, 0, S("")); in test0() 126 test(S(""), 0, 0, SV("12345"), 4, 0, S("")); in test0() 129 test(S(""), 0, 0, SV("12345"), 5, 0, S("")); in test0() 180 test(S(""), 0, 1, SV(""), 0, 0, S("")); in test0() [all …]
|
| H A D | iter_iter_size_char.pass.cpp | 23 test(S s, typename S::size_type pos1, typename S::size_type n1, typename S::size_type n2, in test() 24 typename S::value_type c, S expected) in test() 40 test(S(""), 0, 0, 0, '3', S("")); in test0() 41 test(S(""), 0, 0, 5, '3', S("33333")); in test0() 44 test(S("abcde"), 0, 0, 0, '3', S("abcde")); in test0() 48 test(S("abcde"), 0, 1, 0, '3', S("bcde")); in test0() 52 test(S("abcde"), 0, 2, 0, '3', S("cde")); in test0() 56 test(S("abcde"), 0, 4, 0, '3', S("e")); in test0() 60 test(S("abcde"), 0, 5, 0, '3', S("")); in test0() 76 test(S("abcde"), 1, 3, 0, '3', S("ae")); in test0() [all …]
|
| H A D | iter_iter_pointer.pass.cpp | 25 test(S s, typename S::size_type pos1, typename S::size_type n1, const typename S::value_type* str, … in test() 41 test(S(""), 0, 0, "", S("")); in test0() 42 test(S(""), 0, 0, "12345", S("12345")); in test0() 45 test(S("abcde"), 0, 0, "", S("abcde")); in test0() 49 test(S("abcde"), 0, 1, "", S("bcde")); in test0() 53 test(S("abcde"), 0, 2, "", S("cde")); in test0() 57 test(S("abcde"), 0, 4, "", S("e")); in test0() 61 test(S("abcde"), 0, 5, "", S("")); in test0() 73 test(S("abcde"), 1, 2, "", S("ade")); in test0() 77 test(S("abcde"), 1, 3, "", S("ae")); in test0() [all …]
|
| /llvm-project-15.0.7/libcxx/test/std/strings/basic.string/string.modifiers/string_insert/ |
| H A D | size_string_size_size.pass.cpp | 25 test(S s, typename S::size_type pos1, S str, typename S::size_type pos2, in test() 55 test_npos(S s, typename S::size_type pos1, S str, typename S::size_type pos2, S expected) in test_npos() 86 test(S(""), 0, S(""), 0, 0, S("")); in test0() 87 test(S(""), 0, S(""), 0, 1, S("")); in test0() 89 test(S(""), 0, S("12345"), 0, 0, S("")); in test0() 90 test(S(""), 0, S("12345"), 0, 1, S("1")); in test0() 95 test(S(""), 0, S("12345"), 1, 0, S("")); in test0() 96 test(S(""), 0, S("12345"), 1, 1, S("2")); in test0() 101 test(S(""), 0, S("12345"), 2, 0, S("")); in test0() 106 test(S(""), 0, S("12345"), 4, 0, S("")); in test0() [all …]
|
| H A D | size_string.pass.cpp | 23 test(S s, typename S::size_type pos, S str, S expected) in test() 53 test(S(""), 0, S(""), S("")); in test() 54 test(S(""), 0, S("12345"), S("12345")); in test() 57 test(S(""), 1, S(""), S("can't happen")); in test() 58 test(S(""), 1, S("12345"), S("can't happen")); in test() 61 test(S("abcde"), 0, S(""), S("abcde")); in test() 65 test(S("abcde"), 1, S(""), S("abcde")); in test() 69 test(S("abcde"), 2, S(""), S("abcde")); in test() 73 test(S("abcde"), 4, S(""), S("abcde")); in test() 77 test(S("abcde"), 5, S(""), S("abcde")); in test() [all …]
|
| H A D | size_pointer_size.pass.cpp | 23 test(S s, typename S::size_type pos, const typename S::value_type* str, in test() 24 typename S::size_type n, S expected) in test() 54 test(S(""), 0, "", 0, S("")); in test() 55 test(S(""), 0, "12345", 0, S("")); in test() 56 test(S(""), 0, "12345", 1, S("1")); in test() 57 test(S(""), 0, "12345", 2, S("12")); in test() 58 test(S(""), 0, "12345", 4, S("1234")); in test() 59 test(S(""), 0, "12345", 5, S("12345")); in test() 60 test(S(""), 0, "1234567890", 0, S("")); in test() 61 test(S(""), 0, "1234567890", 1, S("1")); in test() [all …]
|
| H A D | size_T_size_size.pass.cpp | 25 test(S s, typename S::size_type pos1, SV sv, typename S::size_type pos2, in test() 26 typename S::size_type n, S expected) in test() 56 test_npos(S s, typename S::size_type pos1, SV sv, typename S::size_type pos2, S expected) in test_npos() 88 test(S(""), 0, SV(""), 0, 0, S("")); in test0() 89 test(S(""), 0, SV(""), 0, 1, S("")); in test0() 91 test(S(""), 0, SV("12345"), 0, 0, S("")); in test0() 92 test(S(""), 0, SV("12345"), 0, 1, S("1")); in test0() 97 test(S(""), 0, SV("12345"), 1, 0, S("")); in test0() 103 test(S(""), 0, SV("12345"), 2, 0, S("")); in test0() 108 test(S(""), 0, SV("12345"), 4, 0, S("")); in test0() [all …]
|
| H A D | size_pointer.pass.cpp | 23 test(S s, typename S::size_type pos, const typename S::value_type* str, S expected) in test() 53 test(S(""), 0, "", S("")); in test() 54 test(S(""), 0, "12345", S("12345")); in test() 57 test(S(""), 1, "", S("can't happen")); in test() 61 test(S("abcde"), 0, "", S("abcde")); in test() 65 test(S("abcde"), 1, "", S("abcde")); in test() 69 test(S("abcde"), 2, "", S("abcde")); in test() 73 test(S("abcde"), 4, "", S("abcde")); in test() 77 test(S("abcde"), 5, "", S("abcde")); in test() 137 test(S(""), 0, "", S("")); in test() [all …]
|
| H A D | size_size_char.pass.cpp | 23 test(S s, typename S::size_type pos, typename S::size_type n, in test() 24 typename S::value_type str, S expected) in test() 54 test(S(""), 0, 0, '1', S("")); in test() 55 test(S(""), 0, 5, '1', S("11111")); in test() 56 test(S(""), 0, 10, '1', S("1111111111")); in test() 62 test(S("abcde"), 0, 0, '1', S("abcde")); in test() 66 test(S("abcde"), 1, 0, '1', S("abcde")); in test() 70 test(S("abcde"), 2, 0, '1', S("abcde")); in test() 74 test(S("abcde"), 4, 0, '1', S("abcde")); in test() 138 test(S(""), 0, 0, '1', S("")); in test() [all …]
|
| /llvm-project-15.0.7/libcxx/test/std/strings/basic.string/string.ops/string_compare/ |
| H A D | size_size_string_size_size.pass.cpp | 34 test(const S& s, typename S::size_type pos1, typename S::size_type n1, in test() 35 const S& str, typename S::size_type pos2, typename S::size_type n2, int x) in test() 57 test_npos(const S& s, typename S::size_type pos1, typename S::size_type n1, in test_npos() 81 test(S(""), 0, 0, S(""), 0, 0, 0); in test0() 82 test(S(""), 0, 0, S(""), 0, 1, 0); in test0() 83 test(S(""), 0, 0, S(""), 1, 0, 0); in test0() 155 test(S(""), 0, 1, S(""), 0, 0, 0); in test0() 156 test(S(""), 0, 1, S(""), 0, 1, 0); in test0() 157 test(S(""), 0, 1, S(""), 1, 0, 0); in test0() 236 test(S(""), 1, 0, S(""), 0, 0, 0); in test1() [all …]
|
| H A D | size_size_string.pass.cpp | 31 test(const S& s, typename S::size_type pos1, typename S::size_type n1, in test() 55 test(S(""), 0, 0, S(""), 0); in test0() 56 test(S(""), 0, 0, S("abcde"), -5); in test0() 59 test(S(""), 0, 1, S(""), 0); in test0() 60 test(S(""), 0, 1, S("abcde"), -5); in test0() 63 test(S(""), 1, 0, S(""), 0); in test0() 64 test(S(""), 1, 0, S("abcde"), 0); in test0() 67 test(S("abcde"), 0, 0, S(""), 0); in test0() 71 test(S("abcde"), 0, 1, S(""), 1); in test0() 75 test(S("abcde"), 0, 2, S(""), 2); in test0() [all …]
|
| H A D | size_size_pointer_size.pass.cpp | 30 template <class S> 32 test(const S& s, typename S::size_type pos, typename S::size_type n1, in test() 53 template <class S> 1323 test0<S>(); in test() 1324 test1<S>(); in test() 1325 test2<S>(); in test() 1326 test3<S>(); in test() 1327 test4<S>(); in test() 1328 test5<S>(); in test() 1329 test6<S>(); in test() [all …]
|
| /llvm-project-15.0.7/libcxx/test/std/strings/basic.string/string.nonmembers/string_op+/ |
| H A D | string_string.pass.cpp | 63 test0(S(""), S(""), S("")); in test() 64 test0(S(""), S("12345"), S("12345")); in test() 67 test0(S("abcde"), S(""), S("abcde")); in test() 88 test1(S(""), S(""), S("")); in test() 89 test1(S(""), S("12345"), S("12345")); in test() 110 test2(S(""), S(""), S("")); in test() 132 test3(S(""), S(""), S("")); in test() 158 test0(S(""), S(""), S("")); in test() 180 test1(S(""), S(""), S("")); in test() 202 test2(S(""), S(""), S("")); in test() [all …]
|
| /llvm-project-15.0.7/libcxx/test/std/strings/basic.string/string.ops/string_find.first.of/ |
| H A D | pointer_size_size.pass.cpp | 21 test(const S& s, const typename S::value_type* str, typename S::size_type pos, in test() 33 test(S(""), "", 0, 0, S::npos); in test0() 34 test(S(""), "irkhs", 0, 0, S::npos); in test0() 35 test(S(""), "kante", 0, 1, S::npos); in test0() 36 test(S(""), "oknlr", 0, 2, S::npos); in test0() 37 test(S(""), "pcdro", 0, 4, S::npos); in test0() 38 test(S(""), "bnrpe", 0, 5, S::npos); in test0() 49 test(S(""), "", 1, 0, S::npos); in test0() 50 test(S(""), "lbtqd", 1, 0, S::npos); in test0() 51 test(S(""), "tboim", 1, 1, S::npos); in test0() [all …]
|
| /llvm-project-15.0.7/libcxx/test/std/strings/basic.string/string.modifiers/string_erase/ |
| H A D | size_size.pass.cpp | 23 test(S s, typename S::size_type pos, typename S::size_type n, S expected) in test() 53 test(S s, typename S::size_type pos, S expected) in test() 83 test(S s, S expected) in test() 94 test(S(""), 0, 0, S("")); in test() 95 test(S(""), 0, 1, S("")); in test() 169 test(S(""), 0, S("")); in test() 190 test(S(""), S("")); in test() 191 test(S("abcde"), S("")); in test() 198 test(S(""), 0, 0, S("")); in test() 273 test(S(""), 0, S("")); in test() [all …]
|
| /llvm-project-15.0.7/libcxx/test/std/strings/basic.string/string.ops/string_find/ |
| H A D | pointer_size_size.pass.cpp | 21 test(const S& s, const typename S::value_type* str, typename S::size_type pos, in test() 35 test(S(""), "abcde", 0, 1, S::npos); in test0() 36 test(S(""), "abcde", 0, 2, S::npos); in test0() 37 test(S(""), "abcde", 0, 4, S::npos); in test0() 38 test(S(""), "abcde", 0, 5, S::npos); in test0() 49 test(S(""), "", 1, 0, S::npos); in test0() 50 test(S(""), "abcde", 1, 0, S::npos); in test0() 51 test(S(""), "abcde", 1, 1, S::npos); in test0() 52 test(S(""), "abcde", 1, 2, S::npos); in test0() 53 test(S(""), "abcde", 1, 4, S::npos); in test0() [all …]
|
| /llvm-project-15.0.7/libcxx/test/std/strings/string.view/string.view.find/ |
| H A D | find_pointer_size_size.pass.cpp | 23 test(const S& s, const typename S::value_type* str, typename S::size_type pos, in test() 37 test(S(""), "abcde", 0, 1, S::npos); in test0() 38 test(S(""), "abcde", 0, 2, S::npos); in test0() 39 test(S(""), "abcde", 0, 4, S::npos); in test0() 40 test(S(""), "abcde", 0, 5, S::npos); in test0() 51 test(S(""), "", 1, 0, S::npos); in test0() 52 test(S(""), "abcde", 1, 0, S::npos); in test0() 53 test(S(""), "abcde", 1, 1, S::npos); in test0() 54 test(S(""), "abcde", 1, 2, S::npos); in test0() 55 test(S(""), "abcde", 1, 4, S::npos); in test0() [all …]
|
| /llvm-project-15.0.7/libcxx/test/std/strings/basic.string/string.ops/string_find.first.not.of/ |
| H A D | pointer_size_size.pass.cpp | 21 test(const S& s, const typename S::value_type* str, typename S::size_type pos, in test() 33 test(S(""), "", 0, 0, S::npos); in test0() 34 test(S(""), "irkhs", 0, 0, S::npos); in test0() 35 test(S(""), "kante", 0, 1, S::npos); in test0() 36 test(S(""), "oknlr", 0, 2, S::npos); in test0() 37 test(S(""), "pcdro", 0, 4, S::npos); in test0() 38 test(S(""), "bnrpe", 0, 5, S::npos); in test0() 49 test(S(""), "", 1, 0, S::npos); in test0() 50 test(S(""), "lbtqd", 1, 0, S::npos); in test0() 51 test(S(""), "tboim", 1, 1, S::npos); in test0() [all …]
|