Home
last modified time | relevance | path

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

12345678910>>...294

/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 …]
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_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 …]
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 …]
Dsize_size_size_char.pass.cpp23 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 …]
Dsize_size_pointer.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, 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 …]
Dsize_size_T_size_size.pass.cpp26 template <class S, class SV>
28 test(S s, typename S::size_type pos1, typename S::size_type n1, in test()
29 SV sv, typename S::size_type pos2, typename S::size_type n2, in test()
30 S expected) in test()
32 typedef typename S::size_type SizeT; in test()
33 static_assert((!std::is_same<S, SV>::value), ""); in test()
40 S s0 = s; in test()
67 template <class S, class SV>
69 test_npos(S s, typename S::size_type pos1, typename S::size_type n1, in test_npos()
70 SV sv, typename S::size_type pos2, in test_npos()
[all …]
Diter_iter_pointer.pass.cpp23 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 …]
Diter_iter_size_char.pass.cpp22 template <class S>
24 test(S s, typename S::size_type pos1, typename S::size_type n1, typename S::size_type n2, in test()
25 typename S::value_type c, 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, '3', S("")); 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 …]
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()
27 typename S::size_type n, S expected) in test()
29 static_assert((!std::is_same<S, SV>::value), ""); in test()
30 const typename S::size_type old_size = s.size(); in test()
31 S s0 = s; 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()
60 const typename S::size_type old_size = s.size(); in test_npos()
[all …]
Dsize_pointer.pass.cpp22 template <class S>
24 test(S s, typename S::size_type pos, const typename S::value_type* 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("")); in main()
56 test(S(""), 0, "12345", S("12345")); in main()
57 test(S(""), 0, "1234567890", S("1234567890")); in main()
58 test(S(""), 0, "12345678901234567890", S("12345678901234567890")); in main()
59 test(S(""), 1, "", S("can't happen")); in main()
[all …]
Dsize_size_char.pass.cpp22 template <class S>
24 test(S s, typename S::size_type pos, typename S::size_type n, in test()
25 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()
55 typedef std::string S; in main() typedef
56 test(S(""), 0, 0, '1', S("")); in main()
57 test(S(""), 0, 5, '1', S("11111")); in main()
58 test(S(""), 0, 10, '1', S("1111111111")); in main()
59 test(S(""), 0, 20, '1', S("11111111111111111111")); in main()
[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.cpp31 template <class S>
33 test(const S& s, typename S::size_type pos1, typename S::size_type n1, in test()
34 const S& str, int x) in test()
54 template <class S>
57 test(S(""), 0, 0, S(""), 0); in test0()
58 test(S(""), 0, 0, S("abcde"), -5); in test0()
59 test(S(""), 0, 0, S("abcdefghij"), -10); in test0()
60 test(S(""), 0, 0, S("abcdefghijklmnopqrst"), -20); in test0()
61 test(S(""), 0, 1, S(""), 0); in test0()
62 test(S(""), 0, 1, S("abcde"), -5); in test0()
[all …]
Dsize_size_pointer_size.pass.cpp31 template <class S>
33 test(const S& s, typename S::size_type pos, typename S::size_type n1, in test()
34 const typename S::value_type* str, typename S::size_type n2, int x) in test()
54 template <class S>
57 test(S(""), 0, 0, "", 0, 0); in test0()
58 test(S(""), 0, 0, "abcde", 0, 0); in test0()
59 test(S(""), 0, 0, "abcde", 1, -1); in test0()
60 test(S(""), 0, 0, "abcde", 2, -2); in test0()
61 test(S(""), 0, 0, "abcde", 4, -4); in test0()
62 test(S(""), 0, 0, "abcde", 5, -5); in test0()
[all …]
/external/libcxx/test/std/strings/basic.string/string.nonmembers/string_op+/
Dstring_string.pass.cpp38 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/
Dsize_size.pass.cpp22 template <class S>
24 test(S s, typename S::size_type pos, 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>
53 test(S s, typename S::size_type pos, S expected) in test()
55 const typename S::size_type old_size = s.size(); in test()
56 S s0 = s; in test()
80 template <class S>
82 test(S s, S expected) in test()
[all …]
/external/libcxx/test/std/strings/basic.string/string.ops/string_find.first.of/
Dpointer_size_size.pass.cpp19 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/string.view/string.view.find/
Dfind_first_of_pointer_size_size.pass.cpp20 template <class S>
22 test(const S& s, const typename S::value_type* str, typename S::size_type pos, in test()
23 typename S::size_type n, typename S::size_type x) in test()
26 if (x != S::npos) in test()
30 template <class S>
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()
[all …]
/external/libcxx/test/std/experimental/string.view/string.view.find/
Dfind_first_of_pointer_size_size.pass.cpp20 template <class S>
22 test(const S& s, const typename S::value_type* str, typename S::size_type pos, in test()
23 typename S::size_type n, typename S::size_type x) in test()
26 if (x != S::npos) in test()
30 template <class S>
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()
[all …]
/external/libcxx/test/std/strings/basic.string/string.ops/string_find.last.of/
Dpointer_size_size.pass.cpp19 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 …]

12345678910>>...294