/external/libcxx/test/std/strings/basic.string/string.modifiers/string_replace/ |
D | size_size_string_size_size.pass.cpp | 24 template <class S> 26 test(S s, typename S::size_type pos1, typename S::size_type n1, in test() 27 S str, typename S::size_type pos2, typename S::size_type n2, in test() 28 S expected) in test() 30 typename S::size_type old_size = s.size(); in test() 31 S s0 = s; in test() 38 typename S::size_type xlen = std::min(n1, old_size - pos1); in test() 39 typename S::size_type rlen = std::min(n2, str.size() - pos2); in test() 49 template <class S> 51 test_npos(S s, typename S::size_type pos1, typename S::size_type n1, in test_npos() [all …]
|
D | size_size_string.pass.cpp | 22 template <class S> 24 test(S s, typename S::size_type pos1, typename S::size_type n1, S str, S expected) in test() 26 typename S::size_type old_size = s.size(); in test() 27 S s0 = s; in test() 34 typename S::size_type xlen = std::min(n1, old_size - pos1); in test() 35 typename S::size_type rlen = str.size(); in test() 45 template <class S> 48 test(S(""), 0, 0, S(""), S("")); in test0() 49 test(S(""), 0, 0, S("12345"), S("12345")); in test0() 50 test(S(""), 0, 0, S("1234567890"), S("1234567890")); in test0() [all …]
|
D | size_size_pointer_size.pass.cpp | 24 template <class S> 26 test(S s, typename S::size_type pos, typename S::size_type n1, in test() 27 const typename S::value_type* str, typename S::size_type n2, in test() 28 S expected) in test() 30 typename S::size_type old_size = s.size(); in test() 31 S s0 = s; in test() 38 typename S::size_type xlen = std::min(n1, old_size - pos); in test() 39 typename S::size_type rlen = n2; in test() 49 template <class S> 52 test(S(""), 0, 0, "", 0, S("")); in test0() [all …]
|
D | iter_iter_pointer_size.pass.cpp | 23 template <class S> 25 test(S s, typename S::size_type pos1, typename S::size_type n1, const typename S::value_type* str, in test() 26 typename S::size_type n2, S expected) in test() 28 typename S::size_type old_size = s.size(); in test() 29 typename S::const_iterator first = s.begin() + pos1; in test() 30 typename S::const_iterator last = s.begin() + pos1 + n1; in test() 31 typename S::size_type xlen = last - first; in test() 35 typename S::size_type rlen = n2; in test() 39 template <class S> 42 test(S(""), 0, 0, "", 0, S("")); in test0() [all …]
|
D | iter_iter_string.pass.cpp | 23 template <class S> 25 test(S s, typename S::size_type pos1, typename S::size_type n1, S str, S expected) in test() 27 typename S::size_type old_size = s.size(); in test() 28 typename S::const_iterator first = s.begin() + pos1; in test() 29 typename S::const_iterator last = s.begin() + pos1 + n1; in test() 30 typename S::size_type xlen = last - first; in test() 34 typename S::size_type rlen = str.size(); in test() 38 template <class S> 41 test(S(""), 0, 0, S(""), S("")); in test0() 42 test(S(""), 0, 0, S("12345"), S("12345")); in test0() [all …]
|
D | size_size_pointer.pass.cpp | 24 template <class S> 26 test(S s, typename S::size_type pos, typename S::size_type n1, in test() 27 const typename S::value_type* str, S expected) in test() 29 typename S::size_type old_size = s.size(); in test() 30 S s0 = s; in test() 37 typename S::size_type xlen = std::min(n1, old_size - pos); in test() 38 typename S::size_type rlen = S::traits_type::length(str); in test() 48 template <class S> 51 test(S(""), 0, 0, "", S("")); in test0() 52 test(S(""), 0, 0, "12345", S("12345")); in test0() [all …]
|
D | size_size_size_char.pass.cpp | 22 template <class S> 24 test(S s, typename S::size_type pos, typename S::size_type n1, in test() 25 typename S::size_type n2, typename S::value_type c, in test() 26 S expected) in test() 28 typename S::size_type old_size = s.size(); in test() 29 S s0 = s; in test() 36 typename S::size_type xlen = std::min(n1, old_size - pos); in test() 37 typename S::size_type rlen = n2; in test() 47 template <class S> 50 test(S(""), 0, 0, 0, '2', S("")); in test0() [all …]
|
D | iter_iter_size_char.pass.cpp | 23 template <class S> 25 test(S s, typename S::size_type pos1, typename S::size_type n1, typename S::size_type n2, in test() 26 typename S::value_type c, S expected) in test() 28 typename S::size_type old_size = s.size(); in test() 29 typename S::const_iterator first = s.begin() + pos1; in test() 30 typename S::const_iterator last = s.begin() + pos1 + n1; in test() 31 typename S::size_type xlen = last - first; in test() 35 typename S::size_type rlen = n2; in test() 39 template <class S> 42 test(S(""), 0, 0, 0, '3', S("")); in test0() [all …]
|
D | iter_iter_pointer.pass.cpp | 23 template <class S> 25 test(S s, typename S::size_type pos1, typename S::size_type n1, const typename S::value_type* str, … in test() 27 typename S::size_type old_size = s.size(); in test() 28 typename S::const_iterator first = s.begin() + pos1; in test() 29 typename S::const_iterator last = s.begin() + pos1 + n1; in test() 30 typename S::size_type xlen = last - first; in test() 34 typename S::size_type rlen = S::traits_type::length(str); in test() 38 template <class S> 41 test(S(""), 0, 0, "", S("")); in test0() 42 test(S(""), 0, 0, "12345", S("12345")); in test0() [all …]
|
D | iter_iter_iter_iter.pass.cpp | 22 template <class S, class It> 24 test(S s, typename S::size_type pos1, typename S::size_type n1, It f, It l, S expected) in test() 26 typename S::size_type old_size = s.size(); in test() 27 typename S::const_iterator first = s.begin() + pos1; in test() 28 typename S::const_iterator last = s.begin() + pos1 + n1; in test() 29 typename S::size_type xlen = last - first; in test() 33 typename S::size_type rlen = std::distance(f, l); in test() 39 template <class S> 42 test(S(""), 0, 0, str, str+0, S("")); in test0() 43 test(S(""), 0, 0, str, str+0, S("")); in test0() [all …]
|
/external/libcxx/test/std/strings/basic.string/string.modifiers/string_insert/ |
D | size_string_size_size.pass.cpp | 23 template <class S> 25 test(S s, typename S::size_type pos1, S str, typename S::size_type pos2, in test() 26 typename S::size_type n, S expected) in test() 28 typename S::size_type old_size = s.size(); in test() 29 S s0 = s; in test() 44 template <class S> 46 test_npos(S s, typename S::size_type pos1, S str, typename S::size_type pos2, S expected) in test_npos() 48 typename S::size_type old_size = s.size(); in test_npos() 49 S s0 = s; in test_npos() 65 template <class S> [all …]
|
D | size_pointer_size.pass.cpp | 21 template <class S> 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() 26 typename S::size_type old_size = s.size(); in test() 27 S s0 = s; in test() 45 typedef std::string S; in main() typedef 46 test(S(""), 0, "", 0, S("")); in main() 47 test(S(""), 0, "12345", 0, S("")); in main() 48 test(S(""), 0, "12345", 1, S("1")); in main() 49 test(S(""), 0, "12345", 2, S("12")); in main() [all …]
|
D | size_string.pass.cpp | 21 template <class S> 23 test(S s, typename S::size_type pos, S str, S expected) in test() 25 typename S::size_type old_size = s.size(); in test() 26 S s0 = s; in test() 44 typedef std::string S; in main() typedef 45 test(S(""), 0, S(""), S("")); in main() 46 test(S(""), 0, S("12345"), S("12345")); in main() 47 test(S(""), 0, S("1234567890"), S("1234567890")); in main() 48 test(S(""), 0, S("12345678901234567890"), S("12345678901234567890")); in main() 49 test(S(""), 1, S(""), S("can't happen")); in main() [all …]
|
D | size_pointer.pass.cpp | 21 template <class S> 23 test(S s, typename S::size_type pos, const typename S::value_type* str, S expected) in test() 25 typename S::size_type old_size = s.size(); in test() 26 S s0 = s; in test() 44 typedef std::string S; in main() typedef 45 test(S(""), 0, "", S("")); in main() 46 test(S(""), 0, "12345", S("12345")); in main() 47 test(S(""), 0, "1234567890", S("1234567890")); in main() 48 test(S(""), 0, "12345678901234567890", S("12345678901234567890")); in main() 49 test(S(""), 1, "", S("can't happen")); in main() [all …]
|
D | size_size_char.pass.cpp | 21 template <class S> 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() 26 typename S::size_type old_size = s.size(); in test() 27 S s0 = s; in test() 45 typedef std::string S; in main() typedef 46 test(S(""), 0, 0, '1', S("")); in main() 47 test(S(""), 0, 5, '1', S("11111")); in main() 48 test(S(""), 0, 10, '1', S("1111111111")); in main() 49 test(S(""), 0, 20, '1', S("11111111111111111111")); in main() [all …]
|
/external/libcxx/test/std/strings/basic.string/string.ops/string_compare/ |
D | size_size_string_size_size.pass.cpp | 31 template <class S> 33 test(const S& s, typename S::size_type pos1, typename S::size_type n1, in test() 34 const S& str, typename S::size_type pos2, typename S::size_type n2, int x) in test() 48 template <class S> 50 test_npos(const S& s, typename S::size_type pos1, typename S::size_type n1, in test_npos() 51 const S& str, typename S::size_type pos2, int x) in test_npos() 65 template <class S> 68 test(S(""), 0, 0, S(""), 0, 0, 0); in test0() 69 test(S(""), 0, 0, S(""), 0, 1, 0); in test0() 70 test(S(""), 0, 0, S(""), 1, 0, 0); in test0() [all …]
|
D | size_size_string.pass.cpp | 29 template <class S> 31 test(const S& s, typename S::size_type pos1, typename S::size_type n1, in test() 32 const S& str, int x) in test() 45 template <class S> 48 test(S(""), 0, 0, S(""), 0); in test0() 49 test(S(""), 0, 0, S("abcde"), -5); in test0() 50 test(S(""), 0, 0, S("abcdefghij"), -10); in test0() 51 test(S(""), 0, 0, S("abcdefghijklmnopqrst"), -20); in test0() 52 test(S(""), 0, 1, S(""), 0); in test0() 53 test(S(""), 0, 1, S("abcde"), -5); in test0() [all …]
|
D | size_size_pointer_size.pass.cpp | 29 template <class S> 31 test(const S& s, typename S::size_type pos, typename S::size_type n1, in test() 32 const typename S::value_type* str, typename S::size_type n2, int x) in test() 45 template <class S> 48 test(S(""), 0, 0, "", 0, 0); in test0() 49 test(S(""), 0, 0, "abcde", 0, 0); in test0() 50 test(S(""), 0, 0, "abcde", 1, -1); in test0() 51 test(S(""), 0, 0, "abcde", 2, -2); in test0() 52 test(S(""), 0, 0, "abcde", 4, -4); in test0() 53 test(S(""), 0, 0, "abcde", 5, -5); in test0() [all …]
|
/external/libcxx/test/std/strings/basic.string/string.nonmembers/string_op+/ |
D | string_string.pass.cpp | 38 template <class S> 40 test0(const S& lhs, const S& rhs, const S& x) in test0() 47 template <class S> 49 test1(S&& lhs, const S& rhs, const S& x) in test1() 54 template <class S> 56 test2(const S& lhs, S&& rhs, const S& x) in test2() 61 template <class S> 63 test3(S&& lhs, S&& rhs, const S& x) in test3() 73 typedef std::string S; in main() typedef 74 test0(S(""), S(""), S("")); in main() [all …]
|
/external/libcxx/test/std/strings/basic.string/string.modifiers/string_erase/ |
D | size_size.pass.cpp | 21 template <class S> 23 test(S s, typename S::size_type pos, typename S::size_type n, S expected) in test() 25 typename S::size_type old_size = s.size(); in test() 26 S s0 = s; in test() 41 template <class S> 43 test(S s, typename S::size_type pos, S expected) in test() 45 typename S::size_type old_size = s.size(); in test() 46 S s0 = s; in test() 61 template <class S> 63 test(S s, S expected) in test() [all …]
|
/external/libcxx/test/std/strings/basic.string/string.ops/string_find.first.of/ |
D | pointer_size_size.pass.cpp | 19 template <class S> 21 test(const S& s, const typename S::value_type* str, typename S::size_type pos, in test() 22 typename S::size_type n, typename S::size_type x) in test() 25 if (x != S::npos) in test() 29 template <class S> 32 test(S(""), "", 0, 0, S::npos); in test0() 33 test(S(""), "irkhs", 0, 0, S::npos); in test0() 34 test(S(""), "kante", 0, 1, S::npos); in test0() 35 test(S(""), "oknlr", 0, 2, S::npos); in test0() 36 test(S(""), "pcdro", 0, 4, S::npos); in test0() [all …]
|
/external/libcxx/test/std/experimental/string.view/string.view.find/ |
D | find_first_of_pointer_size_size.pass.cpp | 19 template <class S> 21 test(const S& s, const typename S::value_type* str, typename S::size_type pos, in test() 22 typename S::size_type n, typename S::size_type x) in test() 25 if (x != S::npos) in test() 29 template <class S> 32 test(S(""), "", 0, 0, S::npos); in test0() 33 test(S(""), "irkhs", 0, 0, S::npos); in test0() 34 test(S(""), "kante", 0, 1, S::npos); in test0() 35 test(S(""), "oknlr", 0, 2, S::npos); in test0() 36 test(S(""), "pcdro", 0, 4, S::npos); in test0() [all …]
|
D | find_pointer_size_size.pass.cpp | 19 template <class S> 21 test(const S& s, const typename S::value_type* str, typename S::size_type pos, in test() 22 typename S::size_type n, typename S::size_type x) in test() 25 if (x != S::npos) in test() 29 template <class S> 32 test(S(""), "", 0, 0, 0); in test0() 33 test(S(""), "abcde", 0, 0, 0); in test0() 34 test(S(""), "abcde", 0, 1, S::npos); in test0() 35 test(S(""), "abcde", 0, 2, S::npos); in test0() 36 test(S(""), "abcde", 0, 4, S::npos); in test0() [all …]
|
/external/libcxx/test/std/strings/basic.string/string.ops/string_find.last.of/ |
D | pointer_size_size.pass.cpp | 19 template <class S> 21 test(const S& s, const typename S::value_type* str, typename S::size_type pos, in test() 22 typename S::size_type n, typename S::size_type x) in test() 25 if (x != S::npos) in test() 29 template <class S> 32 test(S(""), "", 0, 0, S::npos); in test0() 33 test(S(""), "irkhs", 0, 0, S::npos); in test0() 34 test(S(""), "kante", 0, 1, S::npos); in test0() 35 test(S(""), "oknlr", 0, 2, S::npos); in test0() 36 test(S(""), "pcdro", 0, 4, S::npos); in test0() [all …]
|
/external/libcxx/test/std/strings/basic.string/string.ops/string_find/ |
D | pointer_size_size.pass.cpp | 19 template <class S> 21 test(const S& s, const typename S::value_type* str, typename S::size_type pos, in test() 22 typename S::size_type n, typename S::size_type x) in test() 25 if (x != S::npos) in test() 29 template <class S> 32 test(S(""), "", 0, 0, 0); in test0() 33 test(S(""), "abcde", 0, 0, 0); in test0() 34 test(S(""), "abcde", 0, 1, S::npos); in test0() 35 test(S(""), "abcde", 0, 2, S::npos); in test0() 36 test(S(""), "abcde", 0, 4, S::npos); in test0() [all …]
|