/external/libcxx/test/std/strings/basic.string/string.modifiers/string_replace/ |
D | size_size_string_size_size.pass.cpp | 25 template <class S> 27 test(S s, typename S::size_type pos1, typename S::size_type n1, in test() 28 S str, typename S::size_type pos2, typename S::size_type n2, in test() 29 S expected) in test() 31 const typename S::size_type old_size = s.size(); in test() 32 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() 59 template <class S> 61 test_npos(S s, typename S::size_type pos1, typename S::size_type n1, in test_npos() [all …]
|
D | size_size_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 const typename S::size_type old_size = s.size(); in test() 28 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() 55 template <class S> 58 test(S(""), 0, 0, S(""), S("")); in test0() 59 test(S(""), 0, 0, S("12345"), S("12345")); in test0() 60 test(S(""), 0, 0, S("1234567890"), S("1234567890")); in test0() [all …]
|
D | size_size_pointer_size.pass.cpp | 23 template <class S> 25 test(S s, typename S::size_type pos, typename S::size_type n1, in test() 26 const typename S::value_type* str, typename S::size_type n2, in test() 27 S expected) in test() 29 const typename S::size_type old_size = s.size(); in test() 30 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() 57 template <class S> 60 test(S(""), 0, 0, "", 0, S("")); in test0() [all …]
|
D | iter_iter_pointer_size.pass.cpp | 22 template <class S> 24 test(S s, typename S::size_type pos1, typename S::size_type n1, const typename S::value_type* str, in test() 25 typename S::size_type n2, 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 = n2; in test() 38 template <class S> 41 test(S(""), 0, 0, "", 0, S("")); in test0() [all …]
|
D | iter_iter_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 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 = str.size(); in test() 37 template <class S> 40 test(S(""), 0, 0, S(""), S("")); in test0() 41 test(S(""), 0, 0, S("12345"), S("12345")); in test0() [all …]
|
D | size_size_pointer.pass.cpp | 23 template <class S> 25 test(S s, typename S::size_type pos, typename S::size_type n1, in test() 26 const typename S::value_type* str, S expected) in test() 28 const typename S::size_type old_size = s.size(); in test() 29 S s0 = s; in test() 35 typename S::size_type xlen = std::min(n1, old_size - pos); in test() 36 typename S::size_type rlen = S::traits_type::length(str); in test() 56 template <class S> 59 test(S(""), 0, 0, "", S("")); in test0() 60 test(S(""), 0, 0, "12345", S("12345")); in test0() [all …]
|
D | size_size_size_char.pass.cpp | 23 template <class S> 25 test(S s, typename S::size_type pos, typename S::size_type n1, in test() 26 typename S::size_type n2, typename S::value_type c, in test() 27 S expected) in test() 29 const typename S::size_type old_size = s.size(); in test() 30 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() 57 template <class S> 60 test(S(""), 0, 0, 0, '2', S("")); in test0() [all …]
|
/external/cronet/buildtools/third_party/libc++/trunk/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 const typename S::size_type old_size = s.size(); in test() 31 S s0 = s; in test() 37 typename S::size_type xlen = std::min(n1, old_size - pos1); in test() 38 typename S::size_type rlen = std::min(n2, str.size() - pos2); in test() 58 template <class S> 60 test_npos(S s, typename S::size_type pos1, typename S::size_type n1, in test_npos() [all …]
|
D | size_size_pointer_size.pass.cpp | 22 template <class S> 24 test(S s, typename S::size_type pos, typename S::size_type n1, in test() 25 const typename S::value_type* str, typename S::size_type n2, in test() 26 S expected) in test() 28 const typename S::size_type old_size = s.size(); in test() 29 S s0 = s; in test() 35 typename S::size_type xlen = std::min(n1, old_size - pos); in test() 36 typename S::size_type rlen = n2; in test() 56 template <class S> 59 test(S(""), 0, 0, "", 0, S("")); in test0() [all …]
|
D | iter_iter_pointer_size.pass.cpp | 21 template <class S> 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() 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 = n2; in test() 37 template <class S> 40 test(S(""), 0, 0, "", 0, S("")); in test0() [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 const typename S::size_type old_size = s.size(); in test() 27 S s0 = s; in test() 33 typename S::size_type xlen = std::min(n1, old_size - pos1); in test() 34 typename S::size_type rlen = str.size(); in test() 54 template <class S> 57 test(S(""), 0, 0, S(""), S("")); in test0() 58 test(S(""), 0, 0, S("12345"), S("12345")); in test0() 59 test(S(""), 0, 0, S("1234567890"), S("1234567890")); in test0() [all …]
|
D | iter_iter_string.pass.cpp | 21 template <class S> 23 test(S s, typename S::size_type pos1, typename S::size_type n1, S str, S expected) in test() 25 typename S::size_type old_size = s.size(); in test() 26 typename S::const_iterator first = s.begin() + pos1; in test() 27 typename S::const_iterator last = s.begin() + pos1 + n1; in test() 28 typename S::size_type xlen = last - first; in test() 32 typename S::size_type rlen = str.size(); in test() 36 template <class S> 39 test(S(""), 0, 0, S(""), S("")); in test0() 40 test(S(""), 0, 0, S("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 const typename S::size_type old_size = s.size(); in test() 29 S s0 = s; in test() 35 typename S::size_type xlen = std::min(n1, old_size - pos); in test() 36 typename S::size_type rlen = n2; in test() 56 template <class S> 59 test(S(""), 0, 0, 0, '2', S("")); in test0() [all …]
|
D | size_size_pointer.pass.cpp | 22 template <class S> 24 test(S s, typename S::size_type pos, typename S::size_type n1, in test() 25 const typename S::value_type* str, S expected) in test() 27 const typename S::size_type old_size = s.size(); in test() 28 S s0 = s; in test() 34 typename S::size_type xlen = std::min(n1, old_size - pos); in test() 35 typename S::size_type rlen = S::traits_type::length(str); in test() 55 template <class S> 58 test(S(""), 0, 0, "", S("")); in test0() 59 test(S(""), 0, 0, "12345", S("12345")); in test0() [all …]
|
/external/libcxx/test/std/strings/basic.string/string.modifiers/string_insert/ |
D | size_string_size_size.pass.cpp | 24 template <class S> 26 test(S s, typename S::size_type pos1, S str, typename S::size_type pos2, in test() 27 typename S::size_type n, S expected) in test() 29 const typename S::size_type old_size = s.size(); in test() 30 S s0 = s; in test() 54 template <class S> 56 test_npos(S s, typename S::size_type pos1, S str, typename S::size_type pos2, S expected) in test_npos() 58 const typename S::size_type old_size = s.size(); in test_npos() 59 S s0 = s; in test_npos() 84 template <class S> [all …]
|
D | size_pointer_size.pass.cpp | 22 template <class S> 24 test(S s, typename S::size_type pos, const typename S::value_type* str, in test() 25 typename S::size_type n, S expected) in test() 27 const typename S::size_type old_size = s.size(); in test() 28 S s0 = s; in test() 55 typedef std::string S; in main() typedef 56 test(S(""), 0, "", 0, S("")); in main() 57 test(S(""), 0, "12345", 0, S("")); in main() 58 test(S(""), 0, "12345", 1, S("1")); in main() 59 test(S(""), 0, "12345", 2, S("12")); in main() [all …]
|
D | size_string.pass.cpp | 22 template <class S> 24 test(S s, typename S::size_type pos, S str, S expected) in test() 26 const typename S::size_type old_size = s.size(); in test() 27 S s0 = s; in test() 54 typedef std::string S; in main() typedef 55 test(S(""), 0, S(""), S("")); in main() 56 test(S(""), 0, S("12345"), S("12345")); in main() 57 test(S(""), 0, S("1234567890"), S("1234567890")); in main() 58 test(S(""), 0, S("12345678901234567890"), S("12345678901234567890")); in main() 59 test(S(""), 1, S(""), S("can't happen")); in main() [all …]
|
/external/cronet/buildtools/third_party/libc++/trunk/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 const typename S::size_type old_size = s.size(); in test() 29 S s0 = s; in test() 53 template <class S> 55 test_npos(S s, typename S::size_type pos1, S str, typename S::size_type pos2, S expected) in test_npos() 57 const typename S::size_type old_size = s.size(); in test_npos() 58 S s0 = s; in test_npos() 83 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 const typename S::size_type old_size = s.size(); in test() 27 S s0 = s; in test() 51 template <class S> 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() [all …]
|
/external/libcxx/test/std/strings/basic.string/string.ops/string_compare/ |
D | size_size_string_size_size.pass.cpp | 33 template <class S> 35 test(const S& s, typename S::size_type pos1, typename S::size_type n1, in test() 36 const S& str, typename S::size_type pos2, typename S::size_type n2, int x) in test() 56 template <class S> 58 test_npos(const S& s, typename S::size_type pos1, typename S::size_type n1, in test_npos() 59 const S& str, typename S::size_type pos2, int x) in test_npos() 79 template <class S> 82 test(S(""), 0, 0, S(""), 0, 0, 0); in test0() 83 test(S(""), 0, 0, S(""), 0, 1, 0); in test0() 84 test(S(""), 0, 0, S(""), 1, 0, 0); in test0() [all …]
|
D | size_size_string.pass.cpp | 30 template <class S> 32 test(const S& s, typename S::size_type pos1, typename S::size_type n1, in test() 33 const S& str, int x) in test() 53 template <class S> 56 test(S(""), 0, 0, S(""), 0); in test0() 57 test(S(""), 0, 0, S("abcde"), -5); in test0() 58 test(S(""), 0, 0, S("abcdefghij"), -10); in test0() 59 test(S(""), 0, 0, S("abcdefghijklmnopqrst"), -20); in test0() 60 test(S(""), 0, 1, S(""), 0); in test0() 61 test(S(""), 0, 1, S("abcde"), -5); in test0() [all …]
|
/external/cronet/buildtools/third_party/libc++/trunk/test/std/strings/basic.string/string.ops/string_compare/ |
D | size_size_string_size_size.pass.cpp | 32 template <class S> 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() 55 template <class S> 57 test_npos(const S& s, typename S::size_type pos1, typename S::size_type n1, in test_npos() 58 const S& str, typename S::size_type pos2, int x) in test_npos() 78 template <class S> 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() [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() 52 template <class S> 55 test(S(""), 0, 0, S(""), 0); in test0() 56 test(S(""), 0, 0, S("abcde"), -5); in test0() 57 test(S(""), 0, 0, S("abcdefghij"), -10); in test0() 58 test(S(""), 0, 0, S("abcdefghijklmnopqrst"), -20); in test0() 59 test(S(""), 0, 1, S(""), 0); in test0() 60 test(S(""), 0, 1, S("abcde"), -5); in test0() [all …]
|
/external/cronet/buildtools/third_party/libc++/trunk/test/std/strings/basic.string/string.nonmembers/string_op+/ |
D | string_string.pass.cpp | 38 template <class S> 39 TEST_CONSTEXPR_CXX20 void test0(const S& lhs, const S& rhs, const S& x) { in test0() 44 template <class S> 45 TEST_CONSTEXPR_CXX20 void test1(S&& lhs, const S& rhs, const S& x) { in test1() 49 template <class S> 50 TEST_CONSTEXPR_CXX20 void test2(const S& lhs, S&& rhs, const S& x) { in test2() 54 template <class S> 55 TEST_CONSTEXPR_CXX20 void test3(S&& lhs, S&& rhs, const S& x) { in test3() 62 typedef std::string S; in test() typedef 63 test0(S(""), S(""), S("")); in test() [all …]
|
/external/libcxx/test/std/strings/basic.string/string.nonmembers/string_op+/ |
D | string_string.pass.cpp | 39 template <class S> 40 void test0(const S& lhs, const S& rhs, const S& x) { in test0() 45 template <class S> 46 void test1(S&& lhs, const S& rhs, const S& x) { in test1() 50 template <class S> 51 void test2(const S& lhs, S&& rhs, const S& x) { in test2() 55 template <class S> 56 void test3(S&& lhs, S&& rhs, const S& x) { in test3() 64 typedef std::string S; in main() typedef 65 test0(S(""), S(""), S("")); in main() [all …]
|