Home
last modified time | relevance | path

Searched refs:compare (Results 1 – 25 of 69) sorted by relevance

123

/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/strings/char.traits/char.traits.specializations/char.traits.specializations.char/
Dcompare.pass.cpp21 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/
Dcompare.pass.cpp21 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/
Dcompare.pass.cpp22 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/
Dcompare.pass.cpp22 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/
Dcompare.pass.cpp28 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/
Dcompare_value_type_ptr.pass.cpp26 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()
Dcompare_string_type.pass.cpp27 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()
Dcompare_sub_match.pass.cpp26 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/
Dcollate_facets_test.cpp27 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 …]
Dstring_test.cpp74 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/
Dcollate_facets_test.cpp27 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 …]
Dstring_test.cpp74 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/
Dcompare.pass.cpp37 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/
Dcompare.hpp49 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/
Dmisc.c34 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/
Dsparc_atomic64.s16 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
Dsparc_atomic.s18 ! 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/
Dpointer_alloc.pass.cpp33 assert(T::compare(s2.data(), s, n) == 0); in test()
48 assert(T::compare(s2.data(), s, n) == 0); in test()
Dpointer_size_alloc.pass.cpp32 assert(T::compare(s2.data(), s, n) == 0); in test()
46 assert(T::compare(s2.data(), s, n) == 0); in test()
Dsubstr.pass.cpp37 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.h50 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.h239 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 …]
Dchar_traits.h146 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/
Ddata.pass.cpp27 assert(T::compare(str, &s[0], s.size()) == 0); in test()
Dc_str.pass.cpp27 assert(T::compare(str, &s[0], s.size()) == 0); in test()

123