Home
last modified time | relevance | path

Searched refs:S (Results 1 – 25 of 12890) sorted by relevance

12345678910>>...516

/external/libcxx/test/std/strings/basic.string/string.modifiers/string_replace/
Dsize_size_string_size_size.pass.cpp25 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 …]
Dsize_size_string.pass.cpp23 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 …]
Diter_iter_pointer_size.pass.cpp22 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 …]
Dsize_size_pointer_size.pass.cpp23 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 …]
Diter_iter_string.pass.cpp22 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 …]
/external/cronet/tot/third_party/libc++/src/test/std/strings/basic.string/string.modifiers/string_replace/
Dsize_size_string_size_size.pass.cpp27 template <class S>
29 test(S s, in test()
30 typename S::size_type pos1, in test()
31 typename S::size_type n1, in test()
32 S str, in test()
33 typename S::size_type pos2, in test()
34 typename S::size_type n2, in test()
35 S expected) { in test()
36 const typename S::size_type old_size = s.size(); in test()
37 S s0 = s; in test()
[all …]
Diter_iter_pointer_size.pass.cpp21 template <class S>
23 test(S s, in test()
24 typename S::size_type pos1, in test()
25 typename S::size_type n1, in test()
26 const typename S::value_type* str, in test()
27 typename S::size_type n2, in test()
28 S expected) { in test()
29 typename S::size_type old_size = s.size(); in test()
30 typename S::const_iterator first = s.begin() + pos1; in test()
31 typename S::const_iterator last = s.begin() + pos1 + n1; in test()
[all …]
Dsize_size_pointer_size.pass.cpp23 template <class S>
25 test(S s, in test()
26 typename S::size_type pos, in test()
27 typename S::size_type n1, in test()
28 const typename S::value_type* str, in test()
29 typename S::size_type n2, in test()
30 S expected) { in test()
31 const typename S::size_type old_size = s.size(); in test()
32 S s0 = s; in test()
37 typename S::size_type xlen = std::min(n1, old_size - pos); in test()
[all …]
Dsize_size_string.pass.cpp23 template <class S>
24 TEST_CONSTEXPR_CXX20 void test(S s, typename S::size_type pos1, typename S::size_type n1, S str, S in test()
25 const typename S::size_type old_size = s.size(); in test()
26 S s0 = s; in test()
31 typename S::size_type xlen = std::min(n1, old_size - pos1); in test()
32 typename S::size_type rlen = str.size(); in test()
49 template <class S>
51 test(S(""), 0, 0, S(""), S("")); in test0()
52 test(S(""), 0, 0, S("12345"), S("12345")); in test0()
53 test(S(""), 0, 0, S("1234567890"), S("1234567890")); in test0()
[all …]
Diter_iter_string.pass.cpp22 template <class S>
23 TEST_CONSTEXPR_CXX20 void test(S s, typename S::size_type pos1, typename S::size_type n1, S str, S in test()
24 typename S::size_type old_size = s.size(); in test()
25 typename S::const_iterator first = s.begin() + pos1; in test()
26 typename S::const_iterator last = s.begin() + pos1 + n1; in test()
27 typename S::size_type xlen = last - first; in test()
31 typename S::size_type rlen = str.size(); in test()
36 template <class S>
38 test(S(""), 0, 0, S(""), S("")); in test0()
39 test(S(""), 0, 0, S("12345"), S("12345")); in test0()
[all …]
/external/cronet/stable/third_party/libc++/src/test/std/strings/basic.string/string.modifiers/string_replace/
Dsize_size_string_size_size.pass.cpp27 template <class S>
29 test(S s, in test()
30 typename S::size_type pos1, in test()
31 typename S::size_type n1, in test()
32 S str, in test()
33 typename S::size_type pos2, in test()
34 typename S::size_type n2, in test()
35 S expected) { in test()
36 const typename S::size_type old_size = s.size(); in test()
37 S s0 = s; in test()
[all …]
Diter_iter_pointer_size.pass.cpp21 template <class S>
23 test(S s, in test()
24 typename S::size_type pos1, in test()
25 typename S::size_type n1, in test()
26 const typename S::value_type* str, in test()
27 typename S::size_type n2, in test()
28 S expected) { in test()
29 typename S::size_type old_size = s.size(); in test()
30 typename S::const_iterator first = s.begin() + pos1; in test()
31 typename S::const_iterator last = s.begin() + pos1 + n1; in test()
[all …]
Dsize_size_pointer_size.pass.cpp23 template <class S>
25 test(S s, in test()
26 typename S::size_type pos, in test()
27 typename S::size_type n1, in test()
28 const typename S::value_type* str, in test()
29 typename S::size_type n2, in test()
30 S expected) { in test()
31 const typename S::size_type old_size = s.size(); in test()
32 S s0 = s; in test()
37 typename S::size_type xlen = std::min(n1, old_size - pos); in test()
[all …]
Dsize_size_string.pass.cpp23 template <class S>
24 TEST_CONSTEXPR_CXX20 void test(S s, typename S::size_type pos1, typename S::size_type n1, S str, S in test()
25 const typename S::size_type old_size = s.size(); in test()
26 S s0 = s; in test()
31 typename S::size_type xlen = std::min(n1, old_size - pos1); in test()
32 typename S::size_type rlen = str.size(); in test()
49 template <class S>
51 test(S(""), 0, 0, S(""), S("")); in test0()
52 test(S(""), 0, 0, S("12345"), S("12345")); in test0()
53 test(S(""), 0, 0, S("1234567890"), S("1234567890")); in test0()
[all …]
Diter_iter_string.pass.cpp22 template <class S>
23 TEST_CONSTEXPR_CXX20 void test(S s, typename S::size_type pos1, typename S::size_type n1, S str, S in test()
24 typename S::size_type old_size = s.size(); in test()
25 typename S::const_iterator first = s.begin() + pos1; in test()
26 typename S::const_iterator last = s.begin() + pos1 + n1; in test()
27 typename S::size_type xlen = last - first; in test()
31 typename S::size_type rlen = str.size(); in test()
36 template <class S>
38 test(S(""), 0, 0, S(""), S("")); in test0()
39 test(S(""), 0, 0, S("12345"), S("12345")); in test0()
[all …]
/external/libcxx/test/std/strings/basic.string/string.modifiers/string_insert/
Dsize_string_size_size.pass.cpp24 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 …]
Dsize_pointer_size.pass.cpp22 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 …]
Dsize_string.pass.cpp22 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/tot/third_party/libc++/src/test/std/strings/basic.string/string.modifiers/string_insert/
Dsize_string_size_size.pass.cpp24 template <class S>
26 test(S s, typename S::size_type pos1, S str, typename S::size_type pos2, typename S::size_type n, S in test()
27 const typename S::size_type old_size = s.size(); in test()
28 S s0 = s; in test()
48 template <class S>
49 TEST_CONSTEXPR_CXX20 void test_npos(S s, typename S::size_type pos1, S str, typename S::size_type p… in test_npos()
50 const typename S::size_type old_size = s.size(); in test_npos()
51 S s0 = s; in test_npos()
70 template <class S>
72 test(S(""), 0, S(""), 0, 0, S("")); in test0()
[all …]
/external/cronet/stable/third_party/libc++/src/test/std/strings/basic.string/string.modifiers/string_insert/
Dsize_string_size_size.pass.cpp24 template <class S>
26 test(S s, typename S::size_type pos1, S str, typename S::size_type pos2, typename S::size_type n, S in test()
27 const typename S::size_type old_size = s.size(); in test()
28 S s0 = s; in test()
48 template <class S>
49 TEST_CONSTEXPR_CXX20 void test_npos(S s, typename S::size_type pos1, S str, typename S::size_type p… in test_npos()
50 const typename S::size_type old_size = s.size(); in test_npos()
51 S s0 = s; in test_npos()
70 template <class S>
72 test(S(""), 0, S(""), 0, 0, S("")); in test0()
[all …]
/external/libcxx/test/std/strings/basic.string/string.ops/string_compare/
Dsize_size_string_size_size.pass.cpp33 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 …]
Dsize_size_string.pass.cpp30 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/tot/third_party/libc++/src/test/std/strings/basic.string/string.ops/string_compare/
Dsize_size_string_size_size.pass.cpp33 template <class S>
35 test(const S& s, in test()
36 typename S::size_type pos1, in test()
37 typename S::size_type n1, in test()
38 const S& str, in test()
39 typename S::size_type pos2, in test()
40 typename S::size_type n2, in test()
56 template <class S>
58 …const S& s, typename S::size_type pos1, typename S::size_type n1, const S& str, typename S::size_t… in test_npos()
73 template <class S>
[all …]
/external/cronet/stable/third_party/libc++/src/test/std/strings/basic.string/string.ops/string_compare/
Dsize_size_string_size_size.pass.cpp33 template <class S>
35 test(const S& s, in test()
36 typename S::size_type pos1, in test()
37 typename S::size_type n1, in test()
38 const S& str, in test()
39 typename S::size_type pos2, in test()
40 typename S::size_type n2, in test()
56 template <class S>
58 …const S& s, typename S::size_type pos1, typename S::size_type n1, const S& str, typename S::size_t… in test_npos()
73 template <class S>
[all …]
Dsize_size_string.pass.cpp28 template <class S>
29 TEST_CONSTEXPR_CXX20 void test(const S& s, typename S::size_type pos1, typename S::size_type n1, co… in test()
44 template <class S>
46 test(S(""), 0, 0, S(""), 0); in test0()
47 test(S(""), 0, 0, S("abcde"), -5); in test0()
48 test(S(""), 0, 0, S("abcdefghij"), -10); in test0()
49 test(S(""), 0, 0, S("abcdefghijklmnopqrst"), -20); in test0()
50 test(S(""), 0, 1, S(""), 0); in test0()
51 test(S(""), 0, 1, S("abcde"), -5); in test0()
52 test(S(""), 0, 1, S("abcdefghij"), -10); in test0()
[all …]

12345678910>>...516