Home
last modified time | relevance | path

Searched refs:equalPrefixLength (Results 1 – 3 of 3) sorted by relevance

/external/icu/icu4c/source/i18n/
Drulebasedcollator.cpp979 int32_t equalPrefixLength = 0; in doCompare() local
984 while((c = left[equalPrefixLength]) == right[equalPrefixLength]) { in doCompare()
986 ++equalPrefixLength; in doCompare()
992 if(equalPrefixLength == leftLength) { in doCompare()
993 if(equalPrefixLength == rightLength) { return UCOL_EQUAL; } in doCompare()
995 } else if(equalPrefixLength == rightLength || in doCompare()
996 left[equalPrefixLength] != right[equalPrefixLength]) { in doCompare()
999 ++equalPrefixLength; in doCompare()
1004 if(equalPrefixLength > 0) { in doCompare()
1005 if((equalPrefixLength != leftLength && in doCompare()
[all …]
/external/icu/icu4j/main/classes/collate/src/com/ibm/icu/text/
DRuleBasedCollator.java1635 int equalPrefixLength = 0; in doCompare() local
1637 if(equalPrefixLength == left.length()) { in doCompare()
1638 if(equalPrefixLength == right.length()) { return Collation.EQUAL; } in doCompare()
1640 } else if(equalPrefixLength == right.length() || in doCompare()
1641 left.charAt(equalPrefixLength) != right.charAt(equalPrefixLength)) { in doCompare()
1644 ++equalPrefixLength; in doCompare()
1649 if(equalPrefixLength > 0) { in doCompare()
1650 if((equalPrefixLength != left.length() && in doCompare()
1651 data.isUnsafeBackward(left.charAt(equalPrefixLength), numeric)) || in doCompare()
1652 (equalPrefixLength != right.length() && in doCompare()
[all …]
/external/icu/android_icu4j/src/main/java/android/icu/text/
DRuleBasedCollator.java1599 int equalPrefixLength = 0; in doCompare() local
1601 if(equalPrefixLength == left.length()) { in doCompare()
1602 if(equalPrefixLength == right.length()) { return Collation.EQUAL; } in doCompare()
1604 } else if(equalPrefixLength == right.length() || in doCompare()
1605 left.charAt(equalPrefixLength) != right.charAt(equalPrefixLength)) { in doCompare()
1608 ++equalPrefixLength; in doCompare()
1613 if(equalPrefixLength > 0) { in doCompare()
1614 if((equalPrefixLength != left.length() && in doCompare()
1615 data.isUnsafeBackward(left.charAt(equalPrefixLength), numeric)) || in doCompare()
1616 (equalPrefixLength != right.length() && in doCompare()
[all …]