Home
last modified time | relevance | path

Searched refs:s1 (Results 1 – 25 of 106) sorted by relevance

12345

/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/utilities/time/time.duration/time.duration.comparisons/
Dop_less.pass.cpp40 std::chrono::seconds s1(3); in main() local
42 assert(!(s1 < s2)); in main()
43 assert(!(s1 > s2)); in main()
44 assert( (s1 <= s2)); in main()
45 assert( (s1 >= s2)); in main()
48 std::chrono::seconds s1(3); in main() local
50 assert( (s1 < s2)); in main()
51 assert(!(s1 > s2)); in main()
52 assert( (s1 <= s2)); in main()
53 assert(!(s1 >= s2)); in main()
[all …]
Dop_equal.pass.cpp30 std::chrono::seconds s1(3); in main() local
32 assert(s1 == s2); in main()
33 assert(!(s1 != s2)); in main()
36 std::chrono::seconds s1(3); in main() local
38 assert(!(s1 == s2)); in main()
39 assert(s1 != s2); in main()
42 std::chrono::milliseconds s1(3); in main() local
44 assert(s1 == s2); in main()
45 assert(!(s1 != s2)); in main()
48 std::chrono::milliseconds s1(3); in main() local
[all …]
/ndk/sources/host-tools/sed-4.2.1/lib/
Dstreq.h37 streq9 (const char *s1, const char *s2) in streq9() argument
39 return strcmp (s1 + 9, s2 + 9) == 0; in streq9()
43 streq8 (const char *s1, const char *s2, char s28) in streq8() argument
45 if (s1[8] == s28) in streq8()
50 return streq9 (s1, s2); in streq8()
57 streq7 (const char *s1, const char *s2, char s27, char s28) in streq7() argument
59 if (s1[7] == s27) in streq7()
64 return streq8 (s1, s2, s28); in streq7()
71 streq6 (const char *s1, const char *s2, char s26, char s27, char s28) in streq6() argument
73 if (s1[6] == s26) in streq6()
[all …]
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/strings/char.traits/char.traits.specializations/char.traits.specializations.char/
Dmove.pass.cpp21 char s1[] = {1, 2, 3}; in main() local
22 assert(std::char_traits<char>::move(s1, s1+1, 2) == s1); in main()
23 assert(s1[0] == char(2)); in main()
24 assert(s1[1] == char(3)); in main()
25 assert(s1[2] == char(3)); in main()
26 s1[2] = char(0); in main()
27 assert(std::char_traits<char>::move(s1+1, s1, 2) == s1+1); in main()
28 assert(s1[0] == char(2)); in main()
29 assert(s1[1] == char(2)); in main()
30 assert(s1[2] == char(3)); in main()
Dfind.pass.cpp21 char s1[] = {1, 2, 3}; in main() local
22 assert(std::char_traits<char>::find(s1, 3, char(1)) == s1); in main()
23 assert(std::char_traits<char>::find(s1, 3, char(2)) == s1+1); in main()
24 assert(std::char_traits<char>::find(s1, 3, char(3)) == s1+2); in main()
25 assert(std::char_traits<char>::find(s1, 3, char(4)) == 0); in main()
26 assert(std::char_traits<char>::find(s1, 3, char(0)) == 0); in main()
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/strings/char.traits/char.traits.specializations/char.traits.specializations.wchar.t/
Dmove.pass.cpp21 wchar_t s1[] = {1, 2, 3}; in main() local
22 assert(std::char_traits<wchar_t>::move(s1, s1+1, 2) == s1); in main()
23 assert(s1[0] == wchar_t(2)); in main()
24 assert(s1[1] == wchar_t(3)); in main()
25 assert(s1[2] == wchar_t(3)); in main()
26 s1[2] = wchar_t(0); in main()
27 assert(std::char_traits<wchar_t>::move(s1+1, s1, 2) == s1+1); in main()
28 assert(s1[0] == wchar_t(2)); in main()
29 assert(s1[1] == wchar_t(2)); in main()
30 assert(s1[2] == wchar_t(3)); in main()
Dfind.pass.cpp21 wchar_t s1[] = {1, 2, 3}; in main() local
22 assert(std::char_traits<wchar_t>::find(s1, 3, wchar_t(1)) == s1); in main()
23 assert(std::char_traits<wchar_t>::find(s1, 3, wchar_t(2)) == s1+1); in main()
24 assert(std::char_traits<wchar_t>::find(s1, 3, wchar_t(3)) == s1+2); in main()
25 assert(std::char_traits<wchar_t>::find(s1, 3, wchar_t(4)) == 0); in main()
26 assert(std::char_traits<wchar_t>::find(s1, 3, wchar_t(0)) == 0); in main()
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/strings/char.traits/char.traits.specializations/char.traits.specializations.char32_t/
Dmove.pass.cpp22 char32_t s1[] = {1, 2, 3}; in main() local
23 assert(std::char_traits<char32_t>::move(s1, s1+1, 2) == s1); in main()
24 assert(s1[0] == char32_t(2)); in main()
25 assert(s1[1] == char32_t(3)); in main()
26 assert(s1[2] == char32_t(3)); in main()
27 s1[2] = char32_t(0); in main()
28 assert(std::char_traits<char32_t>::move(s1+1, s1, 2) == s1+1); in main()
29 assert(s1[0] == char32_t(2)); in main()
30 assert(s1[1] == char32_t(2)); in main()
31 assert(s1[2] == char32_t(3)); in main()
Dfind.pass.cpp22 char32_t s1[] = {1, 2, 3}; in main() local
23 assert(std::char_traits<char32_t>::find(s1, 3, char32_t(1)) == s1); in main()
24 assert(std::char_traits<char32_t>::find(s1, 3, char32_t(2)) == s1+1); in main()
25 assert(std::char_traits<char32_t>::find(s1, 3, char32_t(3)) == s1+2); in main()
26 assert(std::char_traits<char32_t>::find(s1, 3, char32_t(4)) == 0); in main()
27 assert(std::char_traits<char32_t>::find(s1, 3, char32_t(0)) == 0); in main()
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/strings/char.traits/char.traits.specializations/char.traits.specializations.char16_t/
Dmove.pass.cpp22 char16_t s1[] = {1, 2, 3}; in main() local
23 assert(std::char_traits<char16_t>::move(s1, s1+1, 2) == s1); in main()
24 assert(s1[0] == char16_t(2)); in main()
25 assert(s1[1] == char16_t(3)); in main()
26 assert(s1[2] == char16_t(3)); in main()
27 s1[2] = char16_t(0); in main()
28 assert(std::char_traits<char16_t>::move(s1+1, s1, 2) == s1+1); in main()
29 assert(s1[0] == char16_t(2)); in main()
30 assert(s1[1] == char16_t(2)); in main()
31 assert(s1[2] == char16_t(3)); in main()
Dfind.pass.cpp22 char16_t s1[] = {1, 2, 3}; in main() local
23 assert(std::char_traits<char16_t>::find(s1, 3, char16_t(1)) == s1); in main()
24 assert(std::char_traits<char16_t>::find(s1, 3, char16_t(2)) == s1+1); in main()
25 assert(std::char_traits<char16_t>::find(s1, 3, char16_t(3)) == s1+2); in main()
26 assert(std::char_traits<char16_t>::find(s1, 3, char16_t(4)) == 0); in main()
27 assert(std::char_traits<char16_t>::find(s1, 3, char16_t(0)) == 0); in main()
/ndk/sources/host-tools/make-3.81/
Dvmsify.c226 char *s,*s1; in vmsify() local
241 char *s1; in vmsify() local
246 s1 = strchr (s+1, '['); in vmsify()
254 if ((type == 1) && (s1 != 0) && (s2 == 0)) in vmsify()
266 if ((type == 1) && (s1 != 0) && (s2 == 0)) in vmsify()
283 s1 = strchr (s+1, '['); in vmsify()
284 if (s1 == 0) in vmsify()
296 s1--; in vmsify()
297 if (*s1 != ']') in vmsify()
311 strncpy (vptr, s, s1-s); /* copy up to but not including ']' */ in vmsify()
[all …]
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/utilities/time/time.duration/time.duration.nonmember/
Dop_+.pass.cpp24 std::chrono::seconds s1(3); in main() local
26 std::chrono::seconds r = s1 + s2; in main()
30 std::chrono::seconds s1(3); in main() local
32 std::chrono::microseconds r = s1 + s2; in main()
36 std::chrono::duration<int, std::ratio<2, 3> > s1(3); in main() local
38 std::chrono::duration<int, std::ratio<1, 15> > r = s1 + s2; in main()
42 std::chrono::duration<int, std::ratio<2, 3> > s1(3); in main() local
44 std::chrono::duration<double, std::ratio<1, 15> > r = s1 + s2; in main()
49 constexpr std::chrono::seconds s1(3); in main() local
51 constexpr std::chrono::seconds r = s1 + s2; in main()
[all …]
Dop_-.pass.cpp25 std::chrono::seconds s1(3); in main() local
27 std::chrono::seconds r = s1 - s2; in main()
31 std::chrono::seconds s1(3); in main() local
33 std::chrono::microseconds r = s1 - s2; in main()
37 std::chrono::duration<int, std::ratio<2, 3> > s1(3); in main() local
39 std::chrono::duration<int, std::ratio<1, 15> > r = s1 - s2; in main()
43 std::chrono::duration<int, std::ratio<2, 3> > s1(3); in main() local
45 std::chrono::duration<double, std::ratio<1, 15> > r = s1 - s2; in main()
50 constexpr std::chrono::seconds s1(3); in main() local
52 constexpr std::chrono::seconds r = s1 - s2; in main()
[all …]
Dop_divide_duration.pass.cpp35 std::chrono::duration<int, std::ratio<2, 3> > s1(30); in main() local
37 assert(s1 / s2 == 6); in main()
40 std::chrono::duration<int, std::ratio<2, 3> > s1(30); in main() local
42 assert(s1 / s2 == 20./3); in main()
56 constexpr std::chrono::duration<int, std::ratio<2, 3> > s1(30); in main() local
58 static_assert(s1 / s2 == 6, ""); in main()
61 constexpr std::chrono::duration<int, std::ratio<2, 3> > s1(30); in main() local
63 static_assert(s1 / s2 == 20./3, ""); in main()
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/utilities/memory/unique.ptr/unique.ptr.single/unique.ptr.single.asgn/
Dmove01.pass.cpp37 std::unique_ptr<A> s1(new A); in main() local
38 A* p = s1.get(); in main()
41 s2 = std::move(s1); in main()
44 assert(s1.get() == 0); in main()
48 std::unique_ptr<A, Deleter<A> > s1(new A, Deleter<A>(5)); in main() local
49 A* p = s1.get(); in main()
52 s2 = std::move(s1); in main()
54 assert(s1.get() == 0); in main()
57 assert(s1.get_deleter().state() == 0); in main()
62 std::unique_ptr<A, CDeleter<A>&> s1(new A, d1); in main() local
[all …]
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/utilities/memory/unique.ptr/unique.ptr.special/
Dswap.pass.cpp41 std::unique_ptr<A, Deleter<A> > s1(p1, Deleter<A>(1)); in main() local
44 assert(s1.get() == p1); in main()
45 assert(*s1 == A(1)); in main()
46 assert(s1.get_deleter().state() == 1); in main()
50 swap(s1, s2); in main()
51 assert(s1.get() == p2); in main()
52 assert(*s1 == A(2)); in main()
53 assert(s1.get_deleter().state() == 2); in main()
62 std::unique_ptr<A[], Deleter<A[]> > s1(p1, Deleter<A[]>(1)); in main() local
65 assert(s1.get() == p1); in main()
[all …]
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/utilities/memory/unique.ptr/unique.ptr.runtime/
Dmove01.pass.cpp37 std::unique_ptr<A[]> s1(new A[3]); in main() local
38 A* p = s1.get(); in main()
42 s2 = std::move(s1); in main()
45 assert(s1.get() == 0); in main()
49 std::unique_ptr<A[], Deleter<A[]> > s1(new A[4], Deleter<A[]>(5)); in main() local
50 A* p = s1.get(); in main()
54 s2 = std::move(s1); in main()
56 assert(s1.get() == 0); in main()
59 assert(s1.get_deleter().state() == 0); in main()
64 std::unique_ptr<A[], CDeleter<A[]>&> s1(new A[6], d1); in main() local
[all …]
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/strings/basic.string/string.cons/
Dchar_assignment.pass.cpp21 test(S s1, typename S::value_type s2) in test() argument
24 s1 = s2; in test()
25 assert(s1.__invariants()); in test()
26 assert(s1.size() == 1); in test()
27 assert(T::eq(s1[0], s2)); in test()
28 assert(s1.capacity() >= s1.size()); in test()
Dpointer_assignment.pass.cpp22 test(S s1, const typename S::value_type* s2) in test() argument
25 s1 = s2; in test()
26 assert(s1.__invariants()); in test()
27 assert(s1.size() == T::length(s2)); in test()
28 assert(T::compare(s1.data(), s2, s1.size()) == 0); in test()
29 assert(s1.capacity() >= s1.size()); in test()
/ndk/tests/device/test-gnustl-full/unit/
Dmfunptr_test.cpp40 struct S1 { } s1; variable
78 ptr_fun(f1)(s1); in mem_ptr_fun()
79 ptr_fun(f2)(s1, s2); in mem_ptr_fun()
81 ptr_fun(f1c)(s1); in mem_ptr_fun()
82 ptr_fun(f2c)(s1, s2); in mem_ptr_fun()
85 ptr_fun(vf1)(s1); in mem_ptr_fun()
86 ptr_fun(vf2)(s1, s2); in mem_ptr_fun()
88 ptr_fun(vf1c)(s1); in mem_ptr_fun()
89 ptr_fun(vf2c)(s1, s2); in mem_ptr_fun()
95 mem_fun(&Class::f1)(&obj, s1); in mem_ptr_fun()
[all …]
/ndk/tests/device/test-stlport/unit/
Dmfunptr_test.cpp40 struct S1 { } s1; variable
78 ptr_fun(f1)(s1); in mem_ptr_fun()
79 ptr_fun(f2)(s1, s2); in mem_ptr_fun()
81 ptr_fun(f1c)(s1); in mem_ptr_fun()
82 ptr_fun(f2c)(s1, s2); in mem_ptr_fun()
85 ptr_fun(vf1)(s1); in mem_ptr_fun()
86 ptr_fun(vf2)(s1, s2); in mem_ptr_fun()
88 ptr_fun(vf1c)(s1); in mem_ptr_fun()
89 ptr_fun(vf2c)(s1, s2); in mem_ptr_fun()
95 mem_fun(&Class::f1)(&obj, s1); in mem_ptr_fun()
[all …]
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/utilities/memory/unique.ptr/unique.ptr.single/unique.ptr.single.modifiers/
Dswap.pass.cpp40 std::unique_ptr<A, Deleter<A> > s1(p1, Deleter<A>(1)); in main() local
43 assert(s1.get() == p1); in main()
44 assert(*s1 == A(1)); in main()
45 assert(s1.get_deleter().state() == 1); in main()
49 s1.swap(s2); in main()
50 assert(s1.get() == p2); in main()
51 assert(*s1 == A(2)); in main()
52 assert(s1.get_deleter().state() == 2); in main()
/ndk/sources/cxx-stl/llvm-libc++/libcxx/include/
Dcstring28 void* memcpy(void* restrict s1, const void* restrict s2, size_t n);
29 void* memmove(void* s1, const void* s2, size_t n);
30 char* strcpy (char* restrict s1, const char* restrict s2);
31 char* strncpy(char* restrict s1, const char* restrict s2, size_t n);
32 char* strcat (char* restrict s1, const char* restrict s2);
33 char* strncat(char* restrict s1, const char* restrict s2, size_t n);
34 int memcmp(const void* s1, const void* s2, size_t n);
35 int strcmp (const char* s1, const char* s2);
36 int strncmp(const char* s1, const char* s2, size_t n);
37 int strcoll(const char* s1, const char* s2);
[all …]
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/re/re.regex/re.regex.construct/
Diter_iter_flg.pass.cpp35 std::string s1("\\(a\\)"); in main() local
40 test(F(s1.begin()), F(s1.end()), std::regex_constants::basic, 1); in main()
45 test(F(s1.begin()), F(s1.end()), std::regex_constants::extended, 0); in main()
50 test(F(s1.begin()), F(s1.end()), std::regex_constants::ECMAScript, 0); in main()
55 test(F(s1.begin()), F(s1.end()), std::regex_constants::awk, 0); in main()
60 test(F(s1.begin()), F(s1.end()), std::regex_constants::grep, 1); in main()
65 test(F(s1.begin()), F(s1.end()), std::regex_constants::egrep, 0); in main()

12345