/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/strings/basic.string/string.modifiers/string_assign/ |
D | iterator.pass.cpp | 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() 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() 38 test(S(), s, s+52, S("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz")); in main() 40 test(S("12345"), s, s, S()); in main() [all …]
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/strings/basic.string/string.modifiers/string_append/ |
D | iterator.pass.cpp | 23 test(S s, It first, It last, S expected) in test() argument 25 s.append(first, last); in test() 26 assert(s.__invariants()); in test() 27 assert(s == expected); in test() 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() 38 test(S(), s, s+52, S("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz")); in main() 40 test(S("12345"), s, s, S("12345")); in main() [all …]
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/strings/basic.string/string.modifiers/string_insert/ |
D | iter_iter_iter.pass.cpp | 27 test(S s, typename S::difference_type pos, It first, It last, S expected) in test() argument 29 typename S::const_iterator p = s.cbegin() + pos; in test() 30 typename S::iterator i = s.insert(p, first, last); in test() 31 assert(s.__invariants()); in test() 32 assert(i - s.begin() == pos); in test() 33 assert(s == expected); in test() 40 const char* s = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"; in main() local 41 test(S(), 0, s, s, S()); in main() 42 test(S(), 0, s, s+1, S("A")); in main() 43 test(S(), 0, s, s+10, S("ABCDEFGHIJ")); in main() [all …]
|
D | iter_char.pass.cpp | 26 test(S& s, typename S::const_iterator p, typename S::value_type c, S expected) in test() argument 28 bool sufficient_cap = s.size() < s.capacity(); in test() 29 typename S::difference_type pos = p - s.begin(); in test() 30 typename S::iterator i = s.insert(p, c); in test() 31 assert(s.__invariants()); in test() 32 assert(s == expected); in test() 33 assert(i - s.begin() == pos); in test() 43 S s; in main() local 44 test(s, s.begin(), '1', S("1")); in main() 45 test(s, s.begin(), 'a', S("a1")); in main() [all …]
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/strings/basic.string/string.modifiers/string_copy/ |
D | copy.pass.cpp | 23 test(S str, typename S::value_type* s, typename S::size_type n, in test() argument 29 typename S::size_type r = cs.copy(s, n, pos); in test() 34 assert(S::traits_type::eq(cs[pos+r], s[r])); in test() 46 char s[50]; in main() local 47 test(S(""), s, 0, 0); in main() 48 test(S(""), s, 0, 1); in main() 49 test(S(""), s, 1, 0); in main() 50 test(S("abcde"), s, 0, 0); in main() 51 test(S("abcde"), s, 0, 1); in main() 52 test(S("abcde"), s, 0, 2); in main() [all …]
|
/ndk/tests/device/issue42891-boost-1_52/jni/boost/boost/preprocessor/list/detail/ |
D | fold_right.hpp | 20 # define BOOST_PP_LIST_FOLD_RIGHT_1(o, s, l) BOOST_PP_LIST_FOLD_LEFT_1(o, s, BOOST_PP_LIST_REVERSE_… argument 21 # define BOOST_PP_LIST_FOLD_RIGHT_2(o, s, l) BOOST_PP_LIST_FOLD_LEFT_2(o, s, BOOST_PP_LIST_REVERSE_… argument 22 # define BOOST_PP_LIST_FOLD_RIGHT_3(o, s, l) BOOST_PP_LIST_FOLD_LEFT_3(o, s, BOOST_PP_LIST_REVERSE_… argument 23 # define BOOST_PP_LIST_FOLD_RIGHT_4(o, s, l) BOOST_PP_LIST_FOLD_LEFT_4(o, s, BOOST_PP_LIST_REVERSE_… argument 24 # define BOOST_PP_LIST_FOLD_RIGHT_5(o, s, l) BOOST_PP_LIST_FOLD_LEFT_5(o, s, BOOST_PP_LIST_REVERSE_… argument 25 # define BOOST_PP_LIST_FOLD_RIGHT_6(o, s, l) BOOST_PP_LIST_FOLD_LEFT_6(o, s, BOOST_PP_LIST_REVERSE_… argument 26 # define BOOST_PP_LIST_FOLD_RIGHT_7(o, s, l) BOOST_PP_LIST_FOLD_LEFT_7(o, s, BOOST_PP_LIST_REVERSE_… argument 27 # define BOOST_PP_LIST_FOLD_RIGHT_8(o, s, l) BOOST_PP_LIST_FOLD_LEFT_8(o, s, BOOST_PP_LIST_REVERSE_… argument 28 # define BOOST_PP_LIST_FOLD_RIGHT_9(o, s, l) BOOST_PP_LIST_FOLD_LEFT_9(o, s, BOOST_PP_LIST_REVERSE_… argument 29 # define BOOST_PP_LIST_FOLD_RIGHT_10(o, s, l) BOOST_PP_LIST_FOLD_LEFT_10(o, s, BOOST_PP_LIST_REVERS… argument [all …]
|
D | fold_left.hpp | 22 … s, l) BOOST_PP_IIF(BOOST_PP_LIST_IS_CONS(l), BOOST_PP_LIST_FOLD_LEFT_2, s BOOST_PP_TUPLE_EAT_3)(o… argument 23 … s, l) BOOST_PP_IIF(BOOST_PP_LIST_IS_CONS(l), BOOST_PP_LIST_FOLD_LEFT_3, s BOOST_PP_TUPLE_EAT_3)(o… argument 24 … s, l) BOOST_PP_IIF(BOOST_PP_LIST_IS_CONS(l), BOOST_PP_LIST_FOLD_LEFT_4, s BOOST_PP_TUPLE_EAT_3)(o… argument 25 … s, l) BOOST_PP_IIF(BOOST_PP_LIST_IS_CONS(l), BOOST_PP_LIST_FOLD_LEFT_5, s BOOST_PP_TUPLE_EAT_3)(o… argument 26 … s, l) BOOST_PP_IIF(BOOST_PP_LIST_IS_CONS(l), BOOST_PP_LIST_FOLD_LEFT_6, s BOOST_PP_TUPLE_EAT_3)(o… argument 27 … s, l) BOOST_PP_IIF(BOOST_PP_LIST_IS_CONS(l), BOOST_PP_LIST_FOLD_LEFT_7, s BOOST_PP_TUPLE_EAT_3)(o… argument 28 … s, l) BOOST_PP_IIF(BOOST_PP_LIST_IS_CONS(l), BOOST_PP_LIST_FOLD_LEFT_8, s BOOST_PP_TUPLE_EAT_3)(o… argument 29 … s, l) BOOST_PP_IIF(BOOST_PP_LIST_IS_CONS(l), BOOST_PP_LIST_FOLD_LEFT_9, s BOOST_PP_TUPLE_EAT_3)(o… argument 30 …s, l) BOOST_PP_IIF(BOOST_PP_LIST_IS_CONS(l), BOOST_PP_LIST_FOLD_LEFT_10, s BOOST_PP_TUPLE_EAT_3)(o… argument 31 …s, l) BOOST_PP_IIF(BOOST_PP_LIST_IS_CONS(l), BOOST_PP_LIST_FOLD_LEFT_11, s BOOST_PP_TUPLE_EAT_3)(o… argument [all …]
|
/ndk/tests/device/issue42891-boost-1_52/jni/boost/boost/preprocessor/list/ |
D | fold_left.hpp | 30 # define BOOST_PP_LIST_FOLD_LEFT_257(o, s, l) BOOST_PP_ERROR(0x0004) argument 32 # define BOOST_PP_LIST_FOLD_LEFT_D(d, o, s, l) BOOST_PP_LIST_FOLD_LEFT_ ## d(o, s, l) argument 46 # define BOOST_PP_LIST_FOLD_LEFT_CHECK_BOOST_PP_LIST_FOLD_LEFT_1(o, s, l) 0 argument 47 # define BOOST_PP_LIST_FOLD_LEFT_CHECK_BOOST_PP_LIST_FOLD_LEFT_2(o, s, l) 0 argument 48 # define BOOST_PP_LIST_FOLD_LEFT_CHECK_BOOST_PP_LIST_FOLD_LEFT_3(o, s, l) 0 argument 49 # define BOOST_PP_LIST_FOLD_LEFT_CHECK_BOOST_PP_LIST_FOLD_LEFT_4(o, s, l) 0 argument 50 # define BOOST_PP_LIST_FOLD_LEFT_CHECK_BOOST_PP_LIST_FOLD_LEFT_5(o, s, l) 0 argument 51 # define BOOST_PP_LIST_FOLD_LEFT_CHECK_BOOST_PP_LIST_FOLD_LEFT_6(o, s, l) 0 argument 52 # define BOOST_PP_LIST_FOLD_LEFT_CHECK_BOOST_PP_LIST_FOLD_LEFT_7(o, s, l) 0 argument 53 # define BOOST_PP_LIST_FOLD_LEFT_CHECK_BOOST_PP_LIST_FOLD_LEFT_8(o, s, l) 0 argument [all …]
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/strings/basic.string/string.capacity/ |
D | reserve.pass.cpp | 22 test(S s) in test() argument 24 typename S::size_type old_cap = s.capacity(); in test() 25 S s0 = s; in test() 26 s.reserve(); in test() 27 assert(s.__invariants()); in test() 28 assert(s == s0); in test() 29 assert(s.capacity() <= old_cap); in test() 30 assert(s.capacity() >= s.size()); in test() 35 test(S s, typename S::size_type res_arg) in test() argument 37 typename S::size_type old_cap = s.capacity(); in test() [all …]
|
D | shrink_to_fit.pass.cpp | 21 test(S s) in test() argument 23 typename S::size_type old_cap = s.capacity(); in test() 24 S s0 = s; in test() 25 s.shrink_to_fit(); in test() 26 assert(s.__invariants()); in test() 27 assert(s == s0); in test() 28 assert(s.capacity() <= old_cap); in test() 29 assert(s.capacity() >= s.size()); in test() 36 S s; in main() local 37 test(s); in main() [all …]
|
/ndk/tests/device/issue42891-boost-1_52/jni/boost/boost/preprocessor/control/ |
D | while.hpp | 51 # define BOOST_PP_WHILE_257(p, o, s) BOOST_PP_ERROR(0x0001) argument 55 # define BOOST_PP_WHILE_CHECK_BOOST_PP_WHILE_1(p, o, s) 0 argument 56 # define BOOST_PP_WHILE_CHECK_BOOST_PP_WHILE_2(p, o, s) 0 argument 57 # define BOOST_PP_WHILE_CHECK_BOOST_PP_WHILE_3(p, o, s) 0 argument 58 # define BOOST_PP_WHILE_CHECK_BOOST_PP_WHILE_4(p, o, s) 0 argument 59 # define BOOST_PP_WHILE_CHECK_BOOST_PP_WHILE_5(p, o, s) 0 argument 60 # define BOOST_PP_WHILE_CHECK_BOOST_PP_WHILE_6(p, o, s) 0 argument 61 # define BOOST_PP_WHILE_CHECK_BOOST_PP_WHILE_7(p, o, s) 0 argument 62 # define BOOST_PP_WHILE_CHECK_BOOST_PP_WHILE_8(p, o, s) 0 argument 63 # define BOOST_PP_WHILE_CHECK_BOOST_PP_WHILE_9(p, o, s) 0 argument [all …]
|
/ndk/tests/device/issue42891-boost-1_52/jni/boost/boost/preprocessor/control/detail/ |
D | while.hpp | 21 # define BOOST_PP_WHILE_1(p, o, s) BOOST_PP_WHILE_1_C(BOOST_PP_BOOL(p(2, s)), p, o, s) argument 22 # define BOOST_PP_WHILE_2(p, o, s) BOOST_PP_WHILE_2_C(BOOST_PP_BOOL(p(3, s)), p, o, s) argument 23 # define BOOST_PP_WHILE_3(p, o, s) BOOST_PP_WHILE_3_C(BOOST_PP_BOOL(p(4, s)), p, o, s) argument 24 # define BOOST_PP_WHILE_4(p, o, s) BOOST_PP_WHILE_4_C(BOOST_PP_BOOL(p(5, s)), p, o, s) argument 25 # define BOOST_PP_WHILE_5(p, o, s) BOOST_PP_WHILE_5_C(BOOST_PP_BOOL(p(6, s)), p, o, s) argument 26 # define BOOST_PP_WHILE_6(p, o, s) BOOST_PP_WHILE_6_C(BOOST_PP_BOOL(p(7, s)), p, o, s) argument 27 # define BOOST_PP_WHILE_7(p, o, s) BOOST_PP_WHILE_7_C(BOOST_PP_BOOL(p(8, s)), p, o, s) argument 28 # define BOOST_PP_WHILE_8(p, o, s) BOOST_PP_WHILE_8_C(BOOST_PP_BOOL(p(9, s)), p, o, s) argument 29 # define BOOST_PP_WHILE_9(p, o, s) BOOST_PP_WHILE_9_C(BOOST_PP_BOOL(p(10, s)), p, o, s) argument 30 # define BOOST_PP_WHILE_10(p, o, s) BOOST_PP_WHILE_10_C(BOOST_PP_BOOL(p(11, s)), p, o, s) argument [all …]
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/re/re.traits/ |
D | isctype.pass.cpp | 24 std::string s("w"); in main() local 25 assert( t.isctype('_', t.lookup_classname(s.begin(), s.end()))); in main() 26 assert( t.isctype('a', t.lookup_classname(s.begin(), s.end()))); in main() 27 assert( t.isctype('Z', t.lookup_classname(s.begin(), s.end()))); in main() 28 assert( t.isctype('5', t.lookup_classname(s.begin(), s.end()))); in main() 29 assert(!t.isctype(' ', t.lookup_classname(s.begin(), s.end()))); in main() 30 assert(!t.isctype('-', t.lookup_classname(s.begin(), s.end()))); in main() 31 assert(!t.isctype('@', t.lookup_classname(s.begin(), s.end()))); in main() 33 s = "alnum"; in main() 34 assert(!t.isctype('_', t.lookup_classname(s.begin(), s.end()))); in main() [all …]
|
/ndk/sources/android/support/src/musl-multibyte/ |
D | mbsrtowcs.c | 14 const unsigned char *s = (const void *)*src; in mbsrtowcs() local 28 if (*s-1u < 0x7f && (uintptr_t)s%4 == 0) { in mbsrtowcs() 29 while (!(( *(uint32_t*)s | *(uint32_t*)s-0x01010101) & 0x80808080)) { in mbsrtowcs() 30 s += 4; in mbsrtowcs() 34 if (*s-1u < 0x7f) { in mbsrtowcs() 35 s++; in mbsrtowcs() 39 if (*s-SA > SB-SA) break; in mbsrtowcs() 40 c = bittab[*s++-SA]; in mbsrtowcs() 42 if (OOB(c,*s)) { s--; break; } in mbsrtowcs() 43 s++; in mbsrtowcs() [all …]
|
/ndk/tests/device/issue42891-boost-1_52/jni/boost/boost/preprocessor/repetition/ |
D | for.hpp | 31 # define BOOST_PP_FOR_SR_P(r, s) s argument 32 # define BOOST_PP_FOR_SR_O(r, s) 0 argument 33 # define BOOST_PP_FOR_SR_M(r, s) BOOST_PP_NIL argument 45 # define BOOST_PP_FOR_257(s, p, o, m) BOOST_PP_ERROR(0x0002) argument 49 # define BOOST_PP_FOR_CHECK_BOOST_PP_FOR_1(s, p, o, m) 0 argument 50 # define BOOST_PP_FOR_CHECK_BOOST_PP_FOR_2(s, p, o, m) 0 argument 51 # define BOOST_PP_FOR_CHECK_BOOST_PP_FOR_3(s, p, o, m) 0 argument 52 # define BOOST_PP_FOR_CHECK_BOOST_PP_FOR_4(s, p, o, m) 0 argument 53 # define BOOST_PP_FOR_CHECK_BOOST_PP_FOR_5(s, p, o, m) 0 argument 54 # define BOOST_PP_FOR_CHECK_BOOST_PP_FOR_6(s, p, o, m) 0 argument [all …]
|
/ndk/tests/device/issue42891-boost-1_52/jni/boost/boost/preprocessor/repetition/detail/ |
D | for.hpp | 22 # define BOOST_PP_FOR_1(s, p, o, m) BOOST_PP_FOR_1_C(BOOST_PP_BOOL(p(2, s)), s, p, o, m) argument 23 # define BOOST_PP_FOR_2(s, p, o, m) BOOST_PP_FOR_2_C(BOOST_PP_BOOL(p(3, s)), s, p, o, m) argument 24 # define BOOST_PP_FOR_3(s, p, o, m) BOOST_PP_FOR_3_C(BOOST_PP_BOOL(p(4, s)), s, p, o, m) argument 25 # define BOOST_PP_FOR_4(s, p, o, m) BOOST_PP_FOR_4_C(BOOST_PP_BOOL(p(5, s)), s, p, o, m) argument 26 # define BOOST_PP_FOR_5(s, p, o, m) BOOST_PP_FOR_5_C(BOOST_PP_BOOL(p(6, s)), s, p, o, m) argument 27 # define BOOST_PP_FOR_6(s, p, o, m) BOOST_PP_FOR_6_C(BOOST_PP_BOOL(p(7, s)), s, p, o, m) argument 28 # define BOOST_PP_FOR_7(s, p, o, m) BOOST_PP_FOR_7_C(BOOST_PP_BOOL(p(8, s)), s, p, o, m) argument 29 # define BOOST_PP_FOR_8(s, p, o, m) BOOST_PP_FOR_8_C(BOOST_PP_BOOL(p(9, s)), s, p, o, m) argument 30 # define BOOST_PP_FOR_9(s, p, o, m) BOOST_PP_FOR_9_C(BOOST_PP_BOOL(p(10, s)), s, p, o, m) argument 31 # define BOOST_PP_FOR_10(s, p, o, m) BOOST_PP_FOR_10_C(BOOST_PP_BOOL(p(11, s)), s, p, o, m) argument [all …]
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/strings/basic.string/string.cons/ |
D | iter_alloc.pass.cpp | 63 const char* s = "12345678901234567890123456789012345678901234567890"; in main() local 65 test(s, s); in main() 66 test(s, s, A(2)); in main() 68 test(s, s+1); in main() 69 test(s, s+1, A(2)); in main() 71 test(s, s+10); in main() 72 test(s, s+10, A(2)); in main() 74 test(s, s+50); in main() 75 test(s, s+50, A(2)); in main() 77 test(input_iterator<const char*>(s), input_iterator<const char*>(s)); in main() [all …]
|
D | alloc.pass.cpp | 25 S s; in test() local 26 assert(s.__invariants()); in test() 27 assert(s.data()); in test() 28 assert(s.size() == 0); in test() 29 assert(s.capacity() >= s.size()); in test() 30 assert(s.get_allocator() == typename S::allocator_type()); in test() 33 S s(typename S::allocator_type(5)); in test() 34 assert(s.__invariants()); in test() 35 assert(s.data()); in test() 36 assert(s.size() == 0); in test() [all …]
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/strings/string.conversions/ |
D | to_wstring.pass.cpp | 31 std::wstring s = std::to_wstring(T(0)); in test_signed() local 32 assert(s.size() == 1); in test_signed() 33 assert(s[s.size()] == 0); in test_signed() 34 assert(s == L"0"); in test_signed() 37 std::wstring s = std::to_wstring(T(12345)); in test_signed() local 38 assert(s.size() == 5); in test_signed() 39 assert(s[s.size()] == 0); in test_signed() 40 assert(s == L"12345"); in test_signed() 43 std::wstring s = std::to_wstring(T(-12345)); in test_signed() local 44 assert(s.size() == 6); in test_signed() [all …]
|
D | to_string.pass.cpp | 31 std::string s = std::to_string(T(0)); in test_signed() local 32 assert(s.size() == 1); in test_signed() 33 assert(s[s.size()] == 0); in test_signed() 34 assert(s == "0"); in test_signed() 37 std::string s = std::to_string(T(12345)); in test_signed() local 38 assert(s.size() == 5); in test_signed() 39 assert(s[s.size()] == 0); in test_signed() 40 assert(s == "12345"); in test_signed() 43 std::string s = std::to_string(T(-12345)); in test_signed() local 44 assert(s.size() == 6); in test_signed() [all …]
|
/ndk/sources/host-tools/make-3.81/ |
D | vmsify.c | 50 #define INIT_DSC_CSTRING(dsc, s) INIT_DSC_S(dsc, s, strlen(s)) argument 68 char *s; in copyto() local 70 s = strrchr (*from, '.'); in copyto() 86 || (*from != s)) in copyto() 121 char *s; in trnlog() local 137 s = (char *)malloc (resltlen+1); in trnlog() 138 if (s == 0) in trnlog() 140 strcpy (s, reslt); in trnlog() 141 return s; in trnlog() 145 showall (char *s) in showall() argument [all …]
|
/ndk/tests/device/test-gnustl-full/unit/ |
D | stack_test.cpp | 35 stack<int, deque<int> > s; in stack1() local 36 s.push(42); in stack1() 37 s.push(101); in stack1() 38 s.push(69); in stack1() 39 CPPUNIT_ASSERT(s.top()==69); in stack1() 40 s.pop(); in stack1() 41 CPPUNIT_ASSERT(s.top()==101); in stack1() 42 s.pop(); in stack1() 43 CPPUNIT_ASSERT(s.top()==42); in stack1() 44 s.pop(); in stack1() [all …]
|
/ndk/tests/device/test-stlport/unit/ |
D | stack_test.cpp | 35 stack<int, deque<int> > s; in stack1() local 36 s.push(42); in stack1() 37 s.push(101); in stack1() 38 s.push(69); in stack1() 39 CPPUNIT_ASSERT(s.top()==69); in stack1() 40 s.pop(); in stack1() 41 CPPUNIT_ASSERT(s.top()==101); in stack1() 42 s.pop(); in stack1() 43 CPPUNIT_ASSERT(s.top()==42); in stack1() 44 s.pop(); in stack1() [all …]
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/strings/basic.string/string.nonmembers/string.io/ |
D | get_line_delim.pass.cpp | 27 std::string s("initial text"); in main() local 28 getline(in, s, '*'); in main() 30 assert(s == " abc"); in main() 31 getline(in, s, '*'); in main() 33 assert(s == " def"); in main() 34 getline(in, s, '*'); in main() 36 assert(s == ""); in main() 37 getline(in, s, '*'); in main() 39 assert(s == " ghij"); in main() 43 std::wstring s(L"initial text"); in main() local [all …]
|
D | stream_extract.pass.cpp | 27 std::string s("initial text"); in main() local 28 in >> s; in main() 30 assert(s == "a"); in main() 32 in >> s; in main() 34 assert(s == "bc"); in main() 37 in >> s; in main() 39 assert(s == "def"); in main() 41 in >> s; in main() 43 assert(s == "ghij"); in main() 44 in >> s; in main() [all …]
|