Home
last modified time | relevance | path

Searched refs:s2 (Results 1 – 7 of 7) sorted by relevance

/packages/inputmethods/OpenWnn/libs/libwnnDictionary/engine/
Dnj_str.c64 NJ_INT16 nj_strcmp(NJ_CHAR *s1, NJ_CHAR *s2) { in nj_strcmp() argument
66 while (*s1 == *s2) { in nj_strcmp()
71 s2++; in nj_strcmp()
73 return NJ_CHAR_DIFF(s1, s2); in nj_strcmp()
76 NJ_INT16 nj_strncmp(NJ_CHAR *s1, NJ_CHAR *s2, NJ_UINT16 n) { in nj_strncmp() argument
79 if (*s1 != *s2++) { in nj_strncmp()
80 return NJ_CHAR_DIFF(s1, (s2 - 1)); in nj_strncmp()
102 NJ_INT16 nj_charncmp(NJ_CHAR *s1, NJ_CHAR *s2, NJ_UINT16 n) { in nj_charncmp() argument
108 if (*s1 != *s2) { in nj_charncmp()
109 return NJ_CHAR_DIFF(s1, s2); in nj_charncmp()
[all …]
/packages/inputmethods/PinyinIME/jni/share/
Ddictbuilder.cpp42 const SingleCharItem *s1, *s2; in cmp_scis_hz_splid_freq() local
44 s2 = static_cast<const SingleCharItem*>(p2); in cmp_scis_hz_splid_freq()
46 if (s1->hz < s2->hz) in cmp_scis_hz_splid_freq()
48 if (s1->hz > s2->hz) in cmp_scis_hz_splid_freq()
51 if (s1->splid.half_splid < s2->splid.half_splid) in cmp_scis_hz_splid_freq()
53 if (s1->splid.half_splid > s2->splid.half_splid) in cmp_scis_hz_splid_freq()
56 if (s1->splid.full_splid < s2->splid.full_splid) in cmp_scis_hz_splid_freq()
58 if (s1->splid.full_splid > s2->splid.full_splid) in cmp_scis_hz_splid_freq()
61 if (s1->freq > s2->freq) in cmp_scis_hz_splid_freq()
63 if (s1->freq < s2->freq) in cmp_scis_hz_splid_freq()
[all …]
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
DNameDistanceTest.java68 byte[] s2 = Hex.decodeHex(NameNormalizer.normalize(name2)); in assertFloat()
70 float actual = mNameDistance.getDistance(s1, s2); in assertFloat()
/packages/inputmethods/OpenWnn/libs/libwnnDictionary/include/
Dnj_ext.h148 extern NJ_INT16 nj_strcmp(NJ_CHAR *s1, NJ_CHAR *s2);
149 extern NJ_INT16 nj_strncmp(NJ_CHAR *s1, NJ_CHAR *s2, NJ_UINT16 n);
151 extern NJ_INT16 nj_charncmp(NJ_CHAR *s1, NJ_CHAR *s2, NJ_UINT16 n);
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
DNameLookupBuilder.java77 public int compare(String s1, String s2) { in insertNameLookup()
78 return s2.length() - s1.length(); in insertNameLookup()
/packages/apps/Email/tests/src/com/android/email/mail/
DAddressUnitTests.java595 String s2 = Address.toString(Address.unpack(packed)); in testUnpackToString() local
596 assertEquals(s2, s2, s1); in testUnpackToString()
605 String s2 = Address.pack(Address.parse(MULTI_ADDRESSES_LIST)); in testParseAndPack() local
606 assertEquals(s2, s1); in testParseAndPack()
/packages/apps/Email/src/com/android/email/activity/
DFolderMessageList.java1892 String s2 = o.name; in compareTo() local
1895 } else if ("Inbox".equalsIgnoreCase(s2)) { in compareTo()
1898 return s1.toUpperCase().compareTo(s2.toUpperCase()); in compareTo()