Home | History | Annotate | Download | only in i18n

Lines Matching refs:table

29     const uint16_t *table = data->fastLatinTable;
30 if(table == NULL) { return -1; }
40 int32_t headerLength = *table & 0xff;
45 miniVarTop = table[i];
87 table += (table[0] & 0xff); // skip the header
89 uint32_t p = table[c];
109 CollationFastLatin::compareUTF16(const uint16_t *table, const uint16_t *primaries, int32_t options,
117 U_ASSERT((table[0] >> 8) == VERSION);
118 table += (table[0] & 0xff); // skip the header
144 leftPair = table[c];
146 leftPair = table[c - PUNCT_START + LATIN_LIMIT];
148 leftPair = lookup(table, c);
157 leftPair = nextPair(table, c, leftPair, left, NULL, leftIndex, leftLength);
175 rightPair = table[c];
177 rightPair = table[c - PUNCT_START + LATIN_LIMIT];
179 rightPair = lookup(table, c);
188 rightPair = nextPair(table, c, rightPair, right, NULL, rightIndex, rightLength);
226 leftPair = table[c];
228 leftPair = table[c - PUNCT_START + LATIN_LIMIT];
230 leftPair = lookup(table, c);
239 leftPair = nextPair(table, c, leftPair, left, NULL, leftIndex, leftLength);
251 rightPair = table[c];
253 rightPair = table[c - PUNCT_START + LATIN_LIMIT];
255 rightPair = lookup(table, c);
264 rightPair = nextPair(table, c, rightPair, right, NULL, rightIndex, rightLength);
301 leftPair = (c <= LATIN_MAX) ? table[c] : lookup(table, c);
303 leftPair = nextPair(table, c, leftPair, left, NULL, leftIndex, leftLength);
314 rightPair = (c <= LATIN_MAX) ? table[c] : lookup(table, c);
316 rightPair = nextPair(table, c, rightPair, right, NULL, rightIndex, rightLength);
354 leftPair = (c <= LATIN_MAX) ? table[c] : lookup(table, c);
356 leftPair = nextPair(table, c, leftPair, left, NULL, leftIndex, leftLength);
367 rightPair = (c <= LATIN_MAX) ? table[c] : lookup(table, c);
369 rightPair = nextPair(table, c, rightPair, right, NULL, rightIndex, rightLength);
410 leftPair = (c <= LATIN_MAX) ? table[c] : lookup(table, c);
412 leftPair = nextPair(table, c, leftPair, left, NULL, leftIndex, leftLength);
423 rightPair = (c <= LATIN_MAX) ? table[c] : lookup(table, c);
425 rightPair = nextPair(table, c, rightPair, right, NULL, rightIndex, rightLength);
448 CollationFastLatin::compareUTF8(const uint16_t *table, const uint16_t *primaries, int32_t options,
453 U_ASSERT((table[0] >> 8) == VERSION);
454 table += (table[0] & 0xff); // skip the header
467 // We only need to look up the table entry for the character,
484 leftPair = table[c];
491 leftPair = table[c];
493 leftPair = lookupUTF8(table, c, left, leftIndex, leftLength);
502 leftPair = nextPair(table, c, leftPair, NULL, left, leftIndex, leftLength);
521 rightPair = table[c];
528 rightPair = table[c];
530 rightPair = lookupUTF8(table, c, right, rightIndex, rightLength);
539 rightPair = nextPair(table, c, rightPair, NULL, right, rightIndex, rightLength);
577 leftPair = table[c];
579 leftPair = table[((c - 0xc2) << 6) + left[leftIndex++]];
581 leftPair = lookupUTF8Unsafe(table, c, left, leftIndex);
590 leftPair = nextPair(table, c, leftPair, NULL, left, leftIndex, leftLength);
602 rightPair = table[c];
604 rightPair = table[((c - 0xc2) << 6) + right[rightIndex++]];
606 rightPair = lookupUTF8Unsafe(table, c, right, rightIndex);
615 rightPair = nextPair(table, c, rightPair, NULL, right, rightIndex, rightLength);
652 leftPair = (c <= 0x7f) ? table[c] : lookupUTF8Unsafe(table, c, left, leftIndex);
654 leftPair = nextPair(table, c, leftPair, NULL, left, leftIndex, leftLength);
665 rightPair = (c <= 0x7f) ? table[c] : lookupUTF8Unsafe(table, c, right, rightIndex);
667 rightPair = nextPair(table, c, rightPair, NULL, right, rightIndex, rightLength);
705 leftPair = (c <= 0x7f) ? table[c] : lookupUTF8Unsafe(table, c, left, leftIndex);
707 leftPair = nextPair(table, c, leftPair, NULL, left, leftIndex, leftLength);
718 rightPair = (c <= 0x7f) ? table[c] : lookupUTF8Unsafe(table, c, right, rightIndex);
720 rightPair = nextPair(table, c, rightPair, NULL, right, rightIndex, rightLength);
761 leftPair = (c <= 0x7f) ? table[c] : lookupUTF8Unsafe(table, c, left, leftIndex);
763 leftPair = nextPair(table, c, leftPair, NULL, left, leftIndex, leftLength);
774 rightPair = (c <= 0x7f) ? table[c] : lookupUTF8Unsafe(table, c, right, rightIndex);
776 rightPair = nextPair(table, c, rightPair, NULL, right, rightIndex, rightLength);
799 CollationFastLatin::lookup(const uint16_t *table, UChar32 c) {
802 return table[c - PUNCT_START + LATIN_LIMIT];
813 CollationFastLatin::lookupUTF8(const uint16_t *table, UChar32 c,
823 return table[(LATIN_LIMIT - 0x80) + t2]; // 2000..203F -> 0180..01BF
836 CollationFastLatin::lookupUTF8Unsafe(const uint16_t *table, UChar32 c,
842 return table[((c - 0xc2) << 6) + s8[sIndex++]]; // 0080..017F
847 return table[(LATIN_LIMIT - 0x80) + t2]; // 2000..203F -> 0180..01BF
856 CollationFastLatin::nextPair(const uint16_t *table, UChar32 c, uint32_t ce,
862 return ((uint32_t)table[index + 1] << 16) | table[index];
920 int32_t head = table[i]; // first skip the default mapping
924 head = table[i];
933 int32_t length = table[index] >> CONTR_LENGTH_SHIFT;
937 ce = table[index + 1];
941 return ((uint32_t)table[index + 2] << 16) | ce;