• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.10/ICU-531.30/icuSources/i18n/

Lines Matching defs:table

28     const uint16_t *table = data->fastLatinTable;
29 if(table == NULL) { return -1; }
40 int32_t headerLength = *table & 0xff;
42 if(i <= 0 || v1 > (table[i] & 0x7f)) {
45 while(i > 1 && v1 <= (table[i - 1] & 0x7f)) { --i; }
46 // In the table header, the miniVarTop is in bits 15..7, with 4 zero bits 19..16 implied.
48 miniVarTop = (table[i] & 0xff80) >> 4;
69 table += (table[0] & 0xff); // skip the header
71 uint32_t p = table[c];
91 CollationFastLatin::compareUTF16(const uint16_t *table, const uint16_t *primaries, int32_t options,
99 U_ASSERT((table[0] >> 8) == VERSION);
100 table += (table[0] & 0xff); // skip the header
127 leftPair = table[c];
129 leftPair = table[c - PUNCT_START + LATIN_LIMIT];
131 leftPair = lookup(table, c);
140 leftPair = nextPair(table, c, leftPair, left, NULL, leftIndex, leftLength);
158 rightPair = table[c];
160 rightPair = table[c - PUNCT_START + LATIN_LIMIT];
162 rightPair = lookup(table, c);
171 rightPair = nextPair(table, c, rightPair, right, NULL, rightIndex, rightLength);
209 leftPair = table[c];
211 leftPair = table[c - PUNCT_START + LATIN_LIMIT];
213 leftPair = lookup(table, c);
222 leftPair = nextPair(table, c, leftPair, left, NULL, leftIndex, leftLength);
234 rightPair = table[c];
236 rightPair = table[c - PUNCT_START + LATIN_LIMIT];
238 rightPair = lookup(table, c);
247 rightPair = nextPair(table, c, rightPair, right, NULL, rightIndex, rightLength);
284 leftPair = (c <= LATIN_MAX) ? table[c] : lookup(table, c);
286 leftPair = nextPair(table, c, leftPair, left, NULL, leftIndex, leftLength);
297 rightPair = (c <= LATIN_MAX) ? table[c] : lookup(table, c);
299 rightPair = nextPair(table, c, rightPair, right, NULL, rightIndex, rightLength);
337 leftPair = (c <= LATIN_MAX) ? table[c] : lookup(table, c);
339 leftPair = nextPair(table, c, leftPair, left, NULL, leftIndex, leftLength);
350 rightPair = (c <= LATIN_MAX) ? table[c] : lookup(table, c);
352 rightPair = nextPair(table, c, rightPair, right, NULL, rightIndex, rightLength);
393 leftPair = (c <= LATIN_MAX) ? table[c] : lookup(table, c);
395 leftPair = nextPair(table, c, leftPair, left, NULL, leftIndex, leftLength);
406 rightPair = (c <= LATIN_MAX) ? table[c] : lookup(table, c);
408 rightPair = nextPair(table, c, rightPair, right, NULL, rightIndex, rightLength);
431 CollationFastLatin::compareUTF8(const uint16_t *table, const uint16_t *primaries, int32_t options,
436 U_ASSERT((table[0] >> 8) == VERSION);
437 table += (table[0] & 0xff); // skip the header
451 // We only need to look up the table entry for the character,
468 leftPair = table[c];
475 leftPair = table[c];
477 leftPair = lookupUTF8(table, c, left, leftIndex, leftLength);
486 leftPair = nextPair(table, c, leftPair, NULL, left, leftIndex, leftLength);
505 rightPair = table[c];
512 rightPair = table[c];
514 rightPair = lookupUTF8(table, c, right, rightIndex, rightLength);
523 rightPair = nextPair(table, c, rightPair, NULL, right, rightIndex, rightLength);
561 leftPair = table[c];
563 leftPair = table[((c - 0xc2) << 6) + left[leftIndex++]];
565 leftPair = lookupUTF8Unsafe(table, c, left, leftIndex);
574 leftPair = nextPair(table, c, leftPair, NULL, left, leftIndex, leftLength);
586 rightPair = table[c];
588 rightPair = table[((c - 0xc2) << 6) + right[rightIndex++]];
590 rightPair = lookupUTF8Unsafe(table, c, right, rightIndex);
599 rightPair = nextPair(table, c, rightPair, NULL, right, rightIndex, rightLength);
636 leftPair = (c <= 0x7f) ? table[c] : lookupUTF8Unsafe(table, c, left, leftIndex);
638 leftPair = nextPair(table, c, leftPair, NULL, left, leftIndex, leftLength);
649 rightPair = (c <= 0x7f) ? table[c] : lookupUTF8Unsafe(table, c, right, rightIndex);
651 rightPair = nextPair(table, c, rightPair, NULL, right, rightIndex, rightLength);
689 leftPair = (c <= 0x7f) ? table[c] : lookupUTF8Unsafe(table, c, left, leftIndex);
691 leftPair = nextPair(table, c, leftPair, NULL, left, leftIndex, leftLength);
702 rightPair = (c <= 0x7f) ? table[c] : lookupUTF8Unsafe(table, c, right, rightIndex);
704 rightPair = nextPair(table, c, rightPair, NULL, right, rightIndex, rightLength);
745 leftPair = (c <= 0x7f) ? table[c] : lookupUTF8Unsafe(table, c, left, leftIndex);
747 leftPair = nextPair(table, c, leftPair, NULL, left, leftIndex, leftLength);
758 rightPair = (c <= 0x7f) ? table[c] : lookupUTF8Unsafe(table, c, right, rightIndex);
760 rightPair = nextPair(table, c, rightPair, NULL, right, rightIndex, rightLength);
783 CollationFastLatin::lookup(const uint16_t *table, UChar32 c) {
786 return table[c - PUNCT_START + LATIN_LIMIT];
797 CollationFastLatin::lookupUTF8(const uint16_t *table, UChar32 c,
807 return table[(LATIN_LIMIT - 0x80) + t2]; // 2000..203F -> 0180..01BF
820 CollationFastLatin::lookupUTF8Unsafe(const uint16_t *table, UChar32 c,
826 return table[((c - 0xc2) << 6) + s8[sIndex++]]; // 0080..017F
831 return table[(LATIN_LIMIT - 0x80) + t2]; // 2000..203F -> 0180..01BF
840 CollationFastLatin::nextPair(const uint16_t *table, UChar32 c, uint32_t ce,
846 return ((uint32_t)table[index + 1] << 16) | table[index];
904 int32_t head = table[i]; // first skip the default mapping
908 head = table[i];
917 int32_t length = table[index] >> CONTR_LENGTH_SHIFT;
921 ce = table[index + 1];
925 return ((uint32_t)table[index + 2] << 16) | ce;