/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/strings/char.traits/char.traits.specializations/char.traits.specializations.char/ |
D | compare.pass.cpp | 21 assert(std::char_traits<char>::compare("", "", 0) == 0); in main() 23 assert(std::char_traits<char>::compare("1", "1", 1) == 0); in main() 24 assert(std::char_traits<char>::compare("1", "2", 1) < 0); in main() 25 assert(std::char_traits<char>::compare("2", "1", 1) > 0); in main() 27 assert(std::char_traits<char>::compare("12", "12", 2) == 0); in main() 28 assert(std::char_traits<char>::compare("12", "13", 2) < 0); in main() 29 assert(std::char_traits<char>::compare("12", "22", 2) < 0); in main() 30 assert(std::char_traits<char>::compare("13", "12", 2) > 0); in main() 31 assert(std::char_traits<char>::compare("22", "12", 2) > 0); in main() 33 assert(std::char_traits<char>::compare("123", "123", 3) == 0); in main() [all …]
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/strings/char.traits/char.traits.specializations/char.traits.specializations.wchar.t/ |
D | compare.pass.cpp | 21 assert(std::char_traits<wchar_t>::compare(L"", L"", 0) == 0); in main() 23 assert(std::char_traits<wchar_t>::compare(L"1", L"1", 1) == 0); in main() 24 assert(std::char_traits<wchar_t>::compare(L"1", L"2", 1) < 0); in main() 25 assert(std::char_traits<wchar_t>::compare(L"2", L"1", 1) > 0); in main() 27 assert(std::char_traits<wchar_t>::compare(L"12", L"12", 2) == 0); in main() 28 assert(std::char_traits<wchar_t>::compare(L"12", L"13", 2) < 0); in main() 29 assert(std::char_traits<wchar_t>::compare(L"12", L"22", 2) < 0); in main() 30 assert(std::char_traits<wchar_t>::compare(L"13", L"12", 2) > 0); in main() 31 assert(std::char_traits<wchar_t>::compare(L"22", L"12", 2) > 0); in main() 33 assert(std::char_traits<wchar_t>::compare(L"123", L"123", 3) == 0); in main() [all …]
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/strings/char.traits/char.traits.specializations/char.traits.specializations.char32_t/ |
D | compare.pass.cpp | 22 assert(std::char_traits<char32_t>::compare(U"", U"", 0) == 0); in main() 24 assert(std::char_traits<char32_t>::compare(U"1", U"1", 1) == 0); in main() 25 assert(std::char_traits<char32_t>::compare(U"1", U"2", 1) < 0); in main() 26 assert(std::char_traits<char32_t>::compare(U"2", U"1", 1) > 0); in main() 28 assert(std::char_traits<char32_t>::compare(U"12", U"12", 2) == 0); in main() 29 assert(std::char_traits<char32_t>::compare(U"12", U"13", 2) < 0); in main() 30 assert(std::char_traits<char32_t>::compare(U"12", U"22", 2) < 0); in main() 31 assert(std::char_traits<char32_t>::compare(U"13", U"12", 2) > 0); in main() 32 assert(std::char_traits<char32_t>::compare(U"22", U"12", 2) > 0); in main() 34 assert(std::char_traits<char32_t>::compare(U"123", U"123", 3) == 0); in main() [all …]
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/strings/char.traits/char.traits.specializations/char.traits.specializations.char16_t/ |
D | compare.pass.cpp | 22 assert(std::char_traits<char16_t>::compare(u"", u"", 0) == 0); in main() 24 assert(std::char_traits<char16_t>::compare(u"1", u"1", 1) == 0); in main() 25 assert(std::char_traits<char16_t>::compare(u"1", u"2", 1) < 0); in main() 26 assert(std::char_traits<char16_t>::compare(u"2", u"1", 1) > 0); in main() 28 assert(std::char_traits<char16_t>::compare(u"12", u"12", 2) == 0); in main() 29 assert(std::char_traits<char16_t>::compare(u"12", u"13", 2) < 0); in main() 30 assert(std::char_traits<char16_t>::compare(u"12", u"22", 2) < 0); in main() 31 assert(std::char_traits<char16_t>::compare(u"13", u"12", 2) > 0); in main() 32 assert(std::char_traits<char16_t>::compare(u"22", u"12", 2) > 0); in main() 34 assert(std::char_traits<char16_t>::compare(u"123", u"123", 3) == 0); in main() [all …]
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/localization/locale.categories/category.collate/locale.collate/locale.collate.members/ |
D | compare.pass.cpp | 28 assert(f.compare(ia, ia+sa, ib, ib+2) == 1); in main() 29 assert(f.compare(ib, ib+2, ia, ia+sa) == -1); in main() 30 assert(f.compare(ia, ia+sa, ib, ib+3) == 1); in main() 31 assert(f.compare(ib, ib+3, ia, ia+sa) == -1); in main() 32 assert(f.compare(ia, ia+sa, ib+1, ib+3) == -1); in main() 33 assert(f.compare(ib+1, ib+3, ia, ia+sa) == 1); in main() 34 assert(f.compare(ia, ia+3, ib, ib+3) == 0); in main() 41 assert(f.compare(ia, ia+sa, ib, ib+2) == 1); in main() 42 assert(f.compare(ib, ib+2, ia, ia+sa) == -1); in main() 43 assert(f.compare(ia, ia+sa, ib, ib+3) == 1); in main() [all …]
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/re/re.submatch/re.submatch.members/ |
D | compare_value_type_ptr.pass.cpp | 26 assert(sm.compare("") == 0); in main() 31 assert(sm.compare("") > 0); in main() 32 assert(sm.compare("123") == 0); in main() 39 assert(sm.compare(L"") == 0); in main() 44 assert(sm.compare(L"") > 0); in main() 45 assert(sm.compare(L"123") == 0); in main()
|
D | compare_string_type.pass.cpp | 27 assert(sm.compare(string()) == 0); in main() 32 assert(sm.compare(string()) > 0); in main() 33 assert(sm.compare(string("123")) == 0); in main() 41 assert(sm.compare(string()) == 0); in main() 46 assert(sm.compare(string()) > 0); in main() 47 assert(sm.compare(string(L"123")) == 0); in main()
|
D | compare_sub_match.pass.cpp | 26 assert(sm.compare(sm2) == 0); in main() 31 assert(sm.compare(sm2) > 0); in main() 35 assert(sm.compare(sm2) == 0); in main() 42 assert(sm.compare(sm2) == 0); in main() 47 assert(sm.compare(sm2) > 0); in main() 51 assert(sm.compare(sm2) == 0); in main()
|
/ndk/tests/device/test-gnustl-full/unit/ |
D | collate_facets_test.cpp | 27 CPPUNIT_ASSERT( col.compare(str1, str1 + size1 - 1, str2, str2 + size2 - 1) == 0 ); in collate_facet() 28 CPPUNIT_ASSERT( col.compare(str1, str1 + size1, str2, str2 + size2) == -1 ); in collate_facet() 31 CPPUNIT_ASSERT( col.compare(str1, str1 + size1 - 2, str2, str2 + size2 - 1) == -1 ); in collate_facet() 32 CPPUNIT_ASSERT( col.compare(str1, str1 + size1 - 1, str2, str2 + size2 - 2) == 1 ); in collate_facet() 47 CPPUNIT_ASSERT( col.compare(str1, str1 + size1 - 1, str2, str2 + size2 - 1) == 0 ); in collate_facet() 48 CPPUNIT_ASSERT( col.compare(str1, str1 + size1, str2, str2 + size2) == -1 ); in collate_facet() 51 CPPUNIT_ASSERT( col.compare(str1, str1 + size1 - 2, str2, str2 + size2 - 1) == -1 ); in collate_facet() 52 CPPUNIT_ASSERT( col.compare(str1, str1 + size1 - 1, str2, str2 + size2 - 2) == 1 ); in collate_facet() 94 CPPUNIT_ASSERT( col.compare(str1, str1 + size1 - 1, str2, str2 + size2 - 1) == 0 ); in collate_facet() 95 CPPUNIT_ASSERT( col.compare(str1, str1 + size1, str2, str2 + size2) == -1 ); in collate_facet() [all …]
|
D | string_test.cpp | 74 CPPUNIT_TEST(compare); 130 void compare(); 904 void StringTest::compare() in compare() function in StringTest 910 CPPUNIT_ASSERT( str1.compare(str2) == 0 ); in compare() 912 CPPUNIT_ASSERT( str1.compare(str2) > 0 ); in compare() 914 CPPUNIT_ASSERT( str1.compare(str2) < 0 ); in compare() 916 CPPUNIT_ASSERT( str1.compare("abcdef") == 0 ); in compare() 917 CPPUNIT_ASSERT( str1.compare("abcde") > 0 ); in compare() 918 CPPUNIT_ASSERT( str1.compare("abcdefg") < 0 ); in compare() 921 CPPUNIT_ASSERT( str1.compare(2, 3, str2) == 0 ); in compare() [all …]
|
/ndk/tests/device/test-stlport/unit/ |
D | collate_facets_test.cpp | 27 CPPUNIT_ASSERT( col.compare(str1, str1 + size1 - 1, str2, str2 + size2 - 1) == 0 ); in collate_facet() 28 CPPUNIT_ASSERT( col.compare(str1, str1 + size1, str2, str2 + size2) == -1 ); in collate_facet() 31 CPPUNIT_ASSERT( col.compare(str1, str1 + size1 - 2, str2, str2 + size2 - 1) == -1 ); in collate_facet() 32 CPPUNIT_ASSERT( col.compare(str1, str1 + size1 - 1, str2, str2 + size2 - 2) == 1 ); in collate_facet() 47 CPPUNIT_ASSERT( col.compare(str1, str1 + size1 - 1, str2, str2 + size2 - 1) == 0 ); in collate_facet() 48 CPPUNIT_ASSERT( col.compare(str1, str1 + size1, str2, str2 + size2) == -1 ); in collate_facet() 51 CPPUNIT_ASSERT( col.compare(str1, str1 + size1 - 2, str2, str2 + size2 - 1) == -1 ); in collate_facet() 52 CPPUNIT_ASSERT( col.compare(str1, str1 + size1 - 1, str2, str2 + size2 - 2) == 1 ); in collate_facet() 94 CPPUNIT_ASSERT( col.compare(str1, str1 + size1 - 1, str2, str2 + size2 - 1) == 0 ); in collate_facet() 95 CPPUNIT_ASSERT( col.compare(str1, str1 + size1, str2, str2 + size2) == -1 ); in collate_facet() [all …]
|
D | string_test.cpp | 74 CPPUNIT_TEST(compare); 130 void compare(); 904 void StringTest::compare() in compare() function in StringTest 910 CPPUNIT_ASSERT( str1.compare(str2) == 0 ); in compare() 912 CPPUNIT_ASSERT( str1.compare(str2) > 0 ); in compare() 914 CPPUNIT_ASSERT( str1.compare(str2) < 0 ); in compare() 916 CPPUNIT_ASSERT( str1.compare("abcdef") == 0 ); in compare() 917 CPPUNIT_ASSERT( str1.compare("abcde") > 0 ); in compare() 918 CPPUNIT_ASSERT( str1.compare("abcdefg") < 0 ); in compare() 921 CPPUNIT_ASSERT( str1.compare(2, 3, str2) == 0 ); in compare() [all …]
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/localization/locale.categories/category.collate/locale.collate.byname/ |
D | compare.pass.cpp | 37 assert(f.compare(s2.data(), s2.data() + s2.size(), in main() 44 assert(f.compare(s2.data(), s2.data() + s2.size(), in main() 54 assert(f.compare(s2.data(), s2.data() + s2.size(), in main() 61 assert(f.compare(s2.data(), s2.data() + s2.size(), in main() 71 assert(f.compare(s2.data(), s2.data() + s2.size(), in main() 78 assert(f.compare(s2.data(), s2.data() + s2.size(), in main()
|
/ndk/tests/device/issue42891-boost-1_52/jni/boost/boost/test/utils/basic_cstring/ |
D | compare.hpp | 49 static int compare( CharT const* s1, CharT const* s2, std::size_t n ) in compare() function 69 …return x.size() == y.size() && ut_detail::case_ins<CharT>::compare( x.begin(), y.begin(), x.size()… in case_ins_eq() 86 : ut_detail::case_ins<CharT>::compare( x.begin(), y.begin(), x.size() ) < 0; in operator ()() 104 : traits_type::compare( x.begin(), y.begin(), x.size() ) < 0; in operator <()
|
/ndk/sources/host-tools/make-3.81/w32/subproc/ |
D | misc.c | 34 int _cdecl compare(const void *a1, const void *a2) in compare() function 65 qsort((void *) tmp, (size_t) arrcnt, sizeof (char*), compare); in arr2envblk()
|
/ndk/sources/cxx-stl/stlport/src/ |
D | sparc_atomic64.s | 16 casx [%o0], %o2, %o3 ! Do the compare and swap 35 casx [%o0], %o2, %o3 ! Do the compare and swap 55 casx [%o0], %o2, %o3 ! Do the compare and swap
|
D | sparc_atomic.s | 18 ! swap [%o0], %o3 ! Do the compare and swap 37 ! swap [%o0], %o3 ! Do the compare and swap 59 ! swap [%o0], %o3 ! Do the compare and swap
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/strings/basic.string/string.cons/ |
D | pointer_alloc.pass.cpp | 33 assert(T::compare(s2.data(), s, n) == 0); in test() 48 assert(T::compare(s2.data(), s, n) == 0); in test()
|
D | pointer_size_alloc.pass.cpp | 32 assert(T::compare(s2.data(), s, n) == 0); in test() 46 assert(T::compare(s2.data(), s, n) == 0); in test()
|
D | substr.pass.cpp | 37 assert(T::compare(s2.data(), str.data() + pos, rlen) == 0); in test() 60 assert(T::compare(s2.data(), str.data() + pos, rlen) == 0); in test() 83 assert(T::compare(s2.data(), str.data() + pos, rlen) == 0); in test()
|
/ndk/sources/cxx-stl/stlport/stlport/stl/ |
D | _collate.h | 50 int compare(const char* __low1, const char* __high1, in compare() function 86 int compare(const wchar_t* __low1, const wchar_t* __high1, in compare() function 166 return __coll.compare(__x.data(), __x.data() + __x.size(), in __locale_do_operator_call()
|
D | _string_sum.h | 239 int compare(const _BString& __s) const in compare() function 240 { return _M_get_storage().compare(__s); } in compare() 241 int compare(size_type __pos1, size_type __n1, const _Self& __s) const in compare() function 242 { return _M_get_storage().compare(__pos1, __n1, __s); } in compare() 243 …int compare(size_type __pos1, size_type __n1, const _Self& __s, size_type __pos2, size_type __n2) … in compare() function 244 { return _M_get_storage().compare(__pos1, __n1, __s, __pos2, __n2); } in compare() 245 int compare(const _CharT* __s) const in compare() function 246 { return _M_get_storage().compare(__s); } in compare() 247 int compare(size_type __pos1, size_type __n1, const _CharT* __s) const in compare() function 248 { return _M_get_storage().compare(__pos1, __n1, __s); } in compare() [all …]
|
D | char_traits.h | 146 static int _STLP_CALL compare(const char_type* __s1, const char_type* __s2, size_t __n) { in compare() function 225 static int _STLP_CALL compare(const char* __s1, const char* __s2, size_t __n) in compare() function 256 static int _STLP_CALL compare(const wchar_t* __s1, const wchar_t* __s2, size_t __n) in compare() function
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/strings/basic.string/string.ops/string.accessors/ |
D | data.pass.cpp | 27 assert(T::compare(str, &s[0], s.size()) == 0); in test()
|
D | c_str.pass.cpp | 27 assert(T::compare(str, &s[0], s.size()) == 0); in test()
|