Lines Matching refs:rightIndex
121 int32_t leftIndex = 0, rightIndex = 0; in compareUTF16() local
162 if(rightIndex == rightLength) { in compareUTF16()
166 UChar32 c = right[rightIndex++]; in compareUTF16()
186 rightPair = nextPair(table, c, rightPair, right, NULL, rightIndex, rightLength); in compareUTF16()
214 leftIndex = rightIndex = 0; in compareUTF16()
243 if(rightIndex == rightLength) { in compareUTF16()
247 UChar32 c = right[rightIndex++]; in compareUTF16()
262 rightPair = nextPair(table, c, rightPair, right, NULL, rightIndex, rightLength); in compareUTF16()
290 leftIndex = rightIndex = 0; in compareUTF16()
307 if(rightIndex == rightLength) { in compareUTF16()
311 UChar32 c = right[rightIndex++]; in compareUTF16()
314 rightPair = nextPair(table, c, rightPair, right, NULL, rightIndex, rightLength); in compareUTF16()
343 leftIndex = rightIndex = 0; in compareUTF16()
360 if(rightIndex == rightLength) { in compareUTF16()
364 UChar32 c = right[rightIndex++]; in compareUTF16()
367 rightPair = nextPair(table, c, rightPair, right, NULL, rightIndex, rightLength); in compareUTF16()
399 leftIndex = rightIndex = 0; in compareUTF16()
416 if(rightIndex == rightLength) { in compareUTF16()
420 UChar32 c = right[rightIndex++]; in compareUTF16()
423 rightPair = nextPair(table, c, rightPair, right, NULL, rightIndex, rightLength); in compareUTF16()
457 int32_t leftIndex = 0, rightIndex = 0; in compareUTF8() local
507 if(rightIndex == rightLength) { in compareUTF8()
511 UChar32 c = right[rightIndex++]; in compareUTF8()
520 } else if(c <= LATIN_MAX_UTF8_LEAD && 0xc2 <= c && rightIndex != rightLength && in compareUTF8()
521 0x80 <= (t = right[rightIndex]) && t <= 0xbf) { in compareUTF8()
522 ++rightIndex; in compareUTF8()
528 rightPair = lookupUTF8(table, c, right, rightIndex, rightLength); in compareUTF8()
537 rightPair = nextPair(table, c, rightPair, NULL, right, rightIndex, rightLength); in compareUTF8()
565 leftIndex = rightIndex = 0; in compareUTF8()
594 if(rightIndex == rightLength) { in compareUTF8()
598 UChar32 c = right[rightIndex++]; in compareUTF8()
602 rightPair = table[((c - 0xc2) << 6) + right[rightIndex++]]; in compareUTF8()
604 rightPair = lookupUTF8Unsafe(table, c, right, rightIndex); in compareUTF8()
613 rightPair = nextPair(table, c, rightPair, NULL, right, rightIndex, rightLength); in compareUTF8()
641 leftIndex = rightIndex = 0; in compareUTF8()
658 if(rightIndex == rightLength) { in compareUTF8()
662 UChar32 c = right[rightIndex++]; in compareUTF8()
663 rightPair = (c <= 0x7f) ? table[c] : lookupUTF8Unsafe(table, c, right, rightIndex); in compareUTF8()
665 rightPair = nextPair(table, c, rightPair, NULL, right, rightIndex, rightLength); in compareUTF8()
694 leftIndex = rightIndex = 0; in compareUTF8()
711 if(rightIndex == rightLength) { in compareUTF8()
715 UChar32 c = right[rightIndex++]; in compareUTF8()
716 rightPair = (c <= 0x7f) ? table[c] : lookupUTF8Unsafe(table, c, right, rightIndex); in compareUTF8()
718 rightPair = nextPair(table, c, rightPair, NULL, right, rightIndex, rightLength); in compareUTF8()
750 leftIndex = rightIndex = 0; in compareUTF8()
767 if(rightIndex == rightLength) { in compareUTF8()
771 UChar32 c = right[rightIndex++]; in compareUTF8()
772 rightPair = (c <= 0x7f) ? table[c] : lookupUTF8Unsafe(table, c, right, rightIndex); in compareUTF8()
774 rightPair = nextPair(table, c, rightPair, NULL, right, rightIndex, rightLength); in compareUTF8()