Lines Matching refs:left
698 RuleBasedCollator::compare(const UnicodeString &left, const UnicodeString &right,
701 return doCompare(left.getBuffer(), left.length(),
706 RuleBasedCollator::compare(const UnicodeString &left, const UnicodeString &right,
713 int32_t leftLength = left.length();
717 return doCompare(left.getBuffer(), leftLength,
722 RuleBasedCollator::compare(const UChar *left, int32_t leftLength,
726 if((left == NULL && leftLength != 0) || (right == NULL && rightLength != 0)) {
735 if(rightLength >= 0) { leftLength = u_strlen(left); }
737 return doCompare(left, leftLength, right, rightLength, errorCode);
741 RuleBasedCollator::compareUTF8(const StringPiece &left, const StringPiece &right,
744 const uint8_t *leftBytes = reinterpret_cast<const uint8_t *>(left.data());
746 if((leftBytes == NULL && !left.empty()) || (rightBytes == NULL && !right.empty())) {
750 return doCompare(leftBytes, left.length(), rightBytes, right.length(), errorCode);
754 RuleBasedCollator::internalCompareUTF8(const char *left, int32_t leftLength,
758 if((left == NULL && leftLength != 0) || (right == NULL && rightLength != 0)) {
767 if(rightLength >= 0) { leftLength = uprv_strlen(left); }
769 return doCompare(reinterpret_cast<const uint8_t *>(left), leftLength,
933 NFDIterator &left, NFDIterator &right) {
936 UChar32 leftCp = left.nextCodePoint();
948 leftCp = left.nextDecomposedCodePoint(nfcImpl, leftCp);
966 RuleBasedCollator::doCompare(const UChar *left, int32_t leftLength,
970 if(left == right && leftLength == rightLength) {
982 while((c = left[equalPrefixLength]) == right[equalPrefixLength]) {
987 leftLimit = left + leftLength;
994 left[equalPrefixLength] != right[equalPrefixLength]) {
1004 data->isUnsafeBackward(left[equalPrefixLength], numeric)) ||
1009 data->isUnsafeBackward(left[equalPrefixLength], numeric)) {}
1024 left[equalPrefixLength] <= CollationFastLatin::LATIN_MAX) &&
1031 left + equalPrefixLength,
1039 left + equalPrefixLength, -1,
1049 left, left + equalPrefixLength, leftLimit);
1055 left, left + equalPrefixLength, leftLimit);
1071 left += equalPrefixLength;
1074 UTF16NFDIterator leftIter(left, leftLimit);
1078 FCDUTF16NFDIterator leftIter(nfcImpl, left, leftLimit);
1085 RuleBasedCollator::doCompare(const uint8_t *left, int32_t leftLength,
1089 if(left == right && leftLength == rightLength) {
1097 while((c = left[equalPrefixLength]) == right[equalPrefixLength]) {
1107 left[equalPrefixLength] != right[equalPrefixLength]) {
1115 ((equalPrefixLength != leftLength && U8_IS_TRAIL(left[equalPrefixLength])) ||
1117 while(--equalPrefixLength > 0 && U8_IS_TRAIL(left[equalPrefixLength])) {}
1126 U8_NEXT_OR_FFFD(left, i, leftLength, c);
1139 U8_PREV_OR_FFFD(left, 0, equalPrefixLength, c);
1153 left[equalPrefixLength] <= CollationFastLatin::LATIN_MAX_UTF8_LEAD) &&
1160 left + equalPrefixLength,
1168 left + equalPrefixLength, -1,
1177 UTF8CollationIterator leftIter(data, numeric, left, equalPrefixLength, leftLength);
1181 FCDUTF8CollationIterator leftIter(data, numeric, left, equalPrefixLength, leftLength);
1196 left += equalPrefixLength;
1203 UTF8NFDIterator leftIter(left, leftLength);
1207 FCDUTF8NFDIterator leftIter(data, left, leftLength);
1214 RuleBasedCollator::compare(UCharIterator &left, UCharIterator &right,
1216 if(U_FAILURE(errorCode) || &left == &right) { return UCOL_EQUAL; }
1224 while((leftUnit = left.next(&left)) == (rightUnit = right.next(&right))) {
1230 if(leftUnit >= 0) { left.previous(&left); }
1239 leftUnit = left.previous(&left);
1249 UIterCollationIterator leftIter(data, numeric, left);
1253 FCDUIterCollationIterator leftIter(data, numeric, left, equalPrefixLength);
1262 left.move(&left, equalPrefixLength, UITER_ZERO);
1266 UIterNFDIterator leftIter(left);
1270 FCDUIterNFDIterator leftIter(data, left, equalPrefixLength);