Home
last modified time | relevance | path

Searched refs:equalPrefixLength (Results 1 – 3 of 3) 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.java1632 int equalPrefixLength = 0; in doCompare() local
1634 if(equalPrefixLength == left.length()) { in doCompare()
1635 if(equalPrefixLength == right.length()) { return Collation.EQUAL; } in doCompare()
1637 } else if(equalPrefixLength == right.length() || in doCompare()
1638 left.charAt(equalPrefixLength) != right.charAt(equalPrefixLength)) { in doCompare()
1641 ++equalPrefixLength; in doCompare()
1646 if(equalPrefixLength > 0) { in doCompare()
1647 if((equalPrefixLength != left.length() && in doCompare()
1648 data.isUnsafeBackward(left.charAt(equalPrefixLength), numeric)) || in doCompare()
1649 (equalPrefixLength != right.length() && in doCompare()
[all …]
/external/icu/android_icu4j/src/main/java/android/icu/text/
DRuleBasedCollator.java1594 int equalPrefixLength = 0; in doCompare() local
1596 if(equalPrefixLength == left.length()) { in doCompare()
1597 if(equalPrefixLength == right.length()) { return Collation.EQUAL; } in doCompare()
1599 } else if(equalPrefixLength == right.length() || in doCompare()
1600 left.charAt(equalPrefixLength) != right.charAt(equalPrefixLength)) { in doCompare()
1603 ++equalPrefixLength; in doCompare()
1608 if(equalPrefixLength > 0) { in doCompare()
1609 if((equalPrefixLength != left.length() && in doCompare()
1610 data.isUnsafeBackward(left.charAt(equalPrefixLength), numeric)) || in doCompare()
1611 (equalPrefixLength != right.length() && in doCompare()
[all …]