/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() argument 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() 34 s.replace(pos1, n1, str, pos2, n2); in test() 35 assert(s.__invariants()); in test() 37 assert(s == expected); in test() 38 typename S::size_type xlen = std::min(n1, old_size - pos1); in test() [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() argument 26 typename S::size_type old_size = s.size(); in test() 27 S s0 = s; in test() 30 s.replace(pos1, n1, str); in test() 31 assert(s.__invariants()); in test() 33 assert(s == expected); 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() 36 assert(s.size() == old_size - xlen + rlen); in test() [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() argument 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() 31 s.replace(first, last, str); in test() 32 assert(s.__invariants()); in test() 33 assert(s == expected); in test() 34 typename S::size_type rlen = str.size(); in test() [all …]
|
D | size_size_pointer_size.pass.cpp | 13 // replace(size_type pos, size_type n1, const charT* s, size_type n2); 24 template <class S> 26 test(S s, typename S::size_type pos, typename S::size_type n1, in test() argument 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() 34 s.replace(pos, n1, str, n2); in test() 35 assert(s.__invariants()); in test() 37 assert(s == expected); in test() [all …]
|
D | iter_iter_pointer_size.pass.cpp | 13 // replace(const_iterator i1, const_iterator i2, const charT* s, size_type n); 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() argument 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() 32 s.replace(first, last, str, n2); in test() 33 assert(s.__invariants()); in test() [all …]
|
D | size_size_pointer.pass.cpp | 13 // replace(size_type pos, size_type n1, const charT* s); 24 template <class S> 26 test(S s, typename S::size_type pos, typename S::size_type n1, in test() argument 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() 33 s.replace(pos, n1, str); in test() 34 assert(s.__invariants()); in test() 36 assert(s == expected); in test() 37 typename S::size_type xlen = std::min(n1, old_size - pos); in test() [all …]
|
D | iter_iter_pointer.pass.cpp | 13 // replace(const_iterator i1, const_iterator i2, const charT* s); 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() argument 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() 31 s.replace(first, last, str); in test() 32 assert(s.__invariants()); in test() 33 assert(s == expected); in test() [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() argument 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() 30 s.replace(first, last, f, l); in test() 31 assert(s.__invariants()); in test() 32 assert(s == expected); in test() 33 typename S::size_type rlen = std::distance(f, l); in test() [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() argument 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() 32 s.replace(pos, n1, n2, c); in test() 33 assert(s.__invariants()); in test() 35 assert(s == expected); in test() 36 typename S::size_type xlen = std::min(n1, old_size - pos); in test() [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() argument 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() 32 s.replace(first, last, n2, c); in test() 33 assert(s.__invariants()); in test() 34 assert(s == expected); in test() [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() argument 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() 32 s.insert(pos1, str, pos2, n); in test() 33 assert(s.__invariants()); in test() 35 assert(s == expected); in test() 40 assert(s == s0); in test() 44 template <class S> [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() argument 25 typename S::size_type old_size = s.size(); in test() 26 S s0 = s; in test() 29 s.insert(pos, str); in test() 30 assert(s.__invariants()); in test() 32 assert(s == expected); in test() 37 assert(s == s0); in test() 44 typedef std::string S; in main() typedef 45 test(S(""), 0, S(""), S("")); in main() [all …]
|
D | size_pointer_size.pass.cpp | 13 // insert(size_type pos, const charT* s, size_type n); 21 template <class S> 23 test(S s, typename S::size_type pos, const typename S::value_type* str, in test() argument 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() 30 s.insert(pos, str, n); in test() 31 assert(s.__invariants()); in test() 33 assert(s == expected); in test() 38 assert(s == s0); in test() [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/chromium-trace/catapult/systrace/systrace/test_data/ |
D | atrace_ps_dump | 2 root 1 0 8784 712 ffffffff 00000000 S /init 3 root 2 0 0 0 ffffffff 00000000 S kthreadd 4 root 3 2 0 0 ffffffff 00000000 S ksoftirqd/0 6 root 8 2 0 0 ffffffff 00000000 S migration/0 7 root 13 2 0 0 ffffffff 00000000 S khelper 8 root 14 2 0 0 ffffffff 00000000 S netns 9 root 17 2 0 0 ffffffff 00000000 S kworker/0:1H 10 root 18 2 0 0 ffffffff 00000000 S modem_notifier 11 root 19 2 0 0 ffffffff 00000000 S smd_channel_clo 12 root 20 2 0 0 ffffffff 00000000 S smsm_cb_wq [all …]
|
D | atrace_data_with_thread_list | 13 …062: sched_switch: prev_comm=atrace prev_pid=14446 prev_prio=120 prev_state=S ==> next_comm=swappe… 16 …92: sched_switch: prev_comm=ksoftirqd/0 prev_pid=3 prev_prio=120 prev_state=S ==> next_comm=swappe… 19 …32: sched_switch: prev_comm=ksoftirqd/0 prev_pid=3 prev_prio=120 prev_state=S ==> next_comm=swappe… 22 …27: sched_switch: prev_comm=ksoftirqd/0 prev_pid=3 prev_prio=120 prev_state=S ==> next_comm=swappe… 26 ….465348: sched_switch: prev_comm=adbd prev_pid=212 prev_prio=120 prev_state=S ==> next_comm=adbd n… 28 ….465441: sched_switch: prev_comm=adbd prev_pid=209 prev_prio=120 prev_state=S ==> next_comm=adbd n… 29 ….465448: sched_switch: prev_comm=adbd prev_pid=211 prev_prio=120 prev_state=S ==> next_comm=swappe… 32 … sched_switch: prev_comm=sensors.qcom prev_pid=292 prev_prio=120 prev_state=S ==> next_comm=sensor… 39 …sched_switch: prev_comm=sensors.qcom prev_pid=1593 prev_prio=120 prev_state=S ==> next_comm=sensor… 41 … sched_switch: prev_comm=sensors.qcom prev_pid=760 prev_prio=120 prev_state=S ==> next_comm=system… [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() argument 34 const S& str, typename S::size_type pos2, typename S::size_type n2, int x) in test() 38 assert(sign(s.compare(pos1, n1, str, pos2, n2)) == sign(x)); in test() 39 assert(pos1 <= s.size()); in test() 44 assert(pos1 > s.size() || pos2 > str.size()); 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() argument 51 const S& str, typename S::size_type pos2, int x) in test_npos() 55 assert(sign(s.compare(pos1, n1, str, pos2)) == sign(x)); in test_npos() [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() argument 32 const S& str, int x) in test() 36 assert(sign(s.compare(pos1, n1, str)) == sign(x)); in test() 37 assert(pos1 <= s.size()); in test() 41 assert(pos1 > s.size()); 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() [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() argument 25 typename S::size_type old_size = s.size(); in test() 26 S s0 = s; in test() 29 s.erase(pos, n); in test() 30 assert(s.__invariants()); in test() 32 assert(s == expected); in test() 37 assert(s == s0); in test() 41 template <class S> 43 test(S s, typename S::size_type pos, S expected) in test() argument [all …]
|
/external/libcxx/test/std/strings/basic.string/string.modifiers/string_assign/ |
D | iterator.pass.cpp | 21 template <class S, class It> 23 test(S s, It first, It last, S expected) in test() argument 25 s.assign(first, last); in test() 26 assert(s.__invariants()); in test() 27 assert(s == expected); in test() 33 typedef std::string S; in main() typedef 34 const char* s = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"; in main() local 35 test(S(), s, s, S()); in main() 36 test(S(), s, s+1, S("A")); in main() 37 test(S(), s, s+10, S("ABCDEFGHIJ")); in main() [all …]
|
/external/libcxx/test/std/strings/basic.string/string.ops/string_find/ |
D | string_size.pass.cpp | 19 template <class S> 21 test(const S& s, const S& str, typename S::size_type pos, typename S::size_type x) in test() argument 23 assert(s.find(str, pos) == x); in test() 24 if (x != S::npos) in test() 25 assert(pos <= x && x + str.size() <= s.size()); in test() 28 template <class S> 30 test(const S& s, const S& str, typename S::size_type x) in test() argument 32 assert(s.find(str) == x); in test() 33 if (x != S::npos) in test() 34 assert(0 <= x && x + str.size() <= s.size()); in test() [all …]
|
D | pointer_size_size.pass.cpp | 12 // size_type find(const charT* s, size_type pos, size_type n) const; 19 template <class S> 21 test(const S& s, const typename S::value_type* str, typename S::size_type pos, in test() argument 22 typename S::size_type n, typename S::size_type x) in test() 24 assert(s.find(str, pos, n) == x); in test() 25 if (x != S::npos) in test() 26 assert(pos <= x && x + n <= s.size()); in test() 29 template <class S> 32 test(S(""), "", 0, 0, 0); in test0() 33 test(S(""), "abcde", 0, 0, 0); in test0() [all …]
|
/external/libcxx/test/std/strings/basic.string/string.ops/string_find.first.of/ |
D | string_size.pass.cpp | 19 template <class S> 21 test(const S& s, const S& str, typename S::size_type pos, typename S::size_type x) in test() argument 23 assert(s.find_first_of(str, pos) == x); in test() 24 if (x != S::npos) in test() 25 assert(pos <= x && x < s.size()); in test() 28 template <class S> 30 test(const S& s, const S& str, typename S::size_type x) in test() argument 32 assert(s.find_first_of(str) == x); in test() 33 if (x != S::npos) in test() 34 assert(x < s.size()); in test() [all …]
|
/external/libcxx/test/std/experimental/string.view/string.view.find/ |
D | find_string_view_size.pass.cpp | 19 template <class S> 21 test(const S& s, const S& str, typename S::size_type pos, typename S::size_type x) in test() argument 23 assert(s.find(str, pos) == x); in test() 24 if (x != S::npos) in test() 25 assert(pos <= x && x + str.size() <= s.size()); in test() 28 template <class S> 30 test(const S& s, const S& str, typename S::size_type x) in test() argument 32 assert(s.find(str) == x); in test() 33 if (x != S::npos) in test() 34 assert(0 <= x && x + str.size() <= s.size()); in test() [all …]
|
D | find_first_of_string_view_size.pass.cpp | 17 template <class S> 19 test(const S& s, const S& str, typename S::size_type pos, typename S::size_type x) in test() argument 21 assert(s.find_first_of(str, pos) == x); in test() 22 if (x != S::npos) in test() 23 assert(pos <= x && x < s.size()); in test() 26 template <class S> 28 test(const S& s, const S& str, typename S::size_type x) in test() argument 30 assert(s.find_first_of(str) == x); in test() 31 if (x != S::npos) in test() 32 assert(x < s.size()); in test() [all …]
|