Home
last modified time | relevance | path

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

/external/icu/icu4c/source/i18n/
Drulebasedcollator.cpp977 int32_t equalPrefixLength = 0; in doCompare() local
982 while((c = left[equalPrefixLength]) == right[equalPrefixLength]) { in doCompare()
984 ++equalPrefixLength; in doCompare()
990 if(equalPrefixLength == leftLength) { in doCompare()
991 if(equalPrefixLength == rightLength) { return UCOL_EQUAL; } in doCompare()
993 } else if(equalPrefixLength == rightLength || in doCompare()
994 left[equalPrefixLength] != right[equalPrefixLength]) { in doCompare()
997 ++equalPrefixLength; in doCompare()
1002 if(equalPrefixLength > 0) { in doCompare()
1003 if((equalPrefixLength != leftLength && in doCompare()
[all …]
/external/icu/icu4j/main/classes/collate/src/com/ibm/icu/text/
DRuleBasedCollator.java1650 int equalPrefixLength = 0; in doCompare() local
1652 if(equalPrefixLength == left.length()) { in doCompare()
1653 if(equalPrefixLength == right.length()) { return Collation.EQUAL; } in doCompare()
1655 } else if(equalPrefixLength == right.length() || in doCompare()
1656 left.charAt(equalPrefixLength) != right.charAt(equalPrefixLength)) { in doCompare()
1659 ++equalPrefixLength; in doCompare()
1664 if(equalPrefixLength > 0) { in doCompare()
1665 if((equalPrefixLength != left.length() && in doCompare()
1666 data.isUnsafeBackward(left.charAt(equalPrefixLength), numeric)) || in doCompare()
1667 (equalPrefixLength != right.length() && in doCompare()
[all …]