• Home
  • Raw
  • Download

Lines Matching refs:trie

30     UTrieHeader trie;  in utrie_swap()  local
49 trie.signature=ds->readUInt32(inTrie->signature); in utrie_swap()
50 trie.options=ds->readUInt32(inTrie->options); in utrie_swap()
51 trie.indexLength=udata_readInt32(ds, inTrie->indexLength); in utrie_swap()
52 trie.dataLength=udata_readInt32(ds, inTrie->dataLength); in utrie_swap()
54 if( trie.signature!=0x54726965 || in utrie_swap()
55 (trie.options&UTRIE_OPTIONS_SHIFT_MASK)!=UTRIE_SHIFT || in utrie_swap()
56 ((trie.options>>UTRIE_OPTIONS_INDEX_SHIFT)&UTRIE_OPTIONS_SHIFT_MASK)!=UTRIE_INDEX_SHIFT || in utrie_swap()
57 trie.indexLength<UTRIE_BMP_INDEX_LENGTH || in utrie_swap()
58 (trie.indexLength&(UTRIE_SURROGATE_BLOCK_COUNT-1))!=0 || in utrie_swap()
59 trie.dataLength<UTRIE_DATA_BLOCK_LENGTH || in utrie_swap()
60 (trie.dataLength&(UTRIE_DATA_GRANULARITY-1))!=0 || in utrie_swap()
61 …((trie.options&UTRIE_OPTIONS_LATIN1_IS_LINEAR)!=0 && trie.dataLength<(UTRIE_DATA_BLOCK_LENGTH+0x10… in utrie_swap()
67 dataIs32=(UBool)((trie.options&UTRIE_OPTIONS_DATA_IS_32_BIT)!=0); in utrie_swap()
68 size=sizeof(UTrieHeader)+trie.indexLength*2+trie.dataLength*(dataIs32?4:2); in utrie_swap()
85 ds->swapArray16(ds, inTrie+1, trie.indexLength*2, outTrie+1, pErrorCode); in utrie_swap()
86 ds->swapArray32(ds, (const uint16_t *)(inTrie+1)+trie.indexLength, trie.dataLength*4, in utrie_swap()
87 (uint16_t *)(outTrie+1)+trie.indexLength, pErrorCode); in utrie_swap()
89 … ds->swapArray16(ds, inTrie+1, (trie.indexLength+trie.dataLength)*2, outTrie+1, pErrorCode); in utrie_swap()
101 UTrie2Header trie; in utrie2_swap() local
120 trie.signature=ds->readUInt32(inTrie->signature); in utrie2_swap()
121 trie.options=ds->readUInt16(inTrie->options); in utrie2_swap()
122 trie.indexLength=ds->readUInt16(inTrie->indexLength); in utrie2_swap()
123 trie.shiftedDataLength=ds->readUInt16(inTrie->shiftedDataLength); in utrie2_swap()
125 valueBits=(UTrie2ValueBits)(trie.options&UTRIE2_OPTIONS_VALUE_BITS_MASK); in utrie2_swap()
126 dataLength=(int32_t)trie.shiftedDataLength<<UTRIE2_INDEX_SHIFT; in utrie2_swap()
128 if( trie.signature!=UTRIE2_SIG || in utrie2_swap()
130 trie.indexLength<UTRIE2_INDEX_1_OFFSET || in utrie2_swap()
137 size=sizeof(UTrie2Header)+trie.indexLength*2; in utrie2_swap()
167 ds->swapArray16(ds, inTrie+1, (trie.indexLength+dataLength)*2, outTrie+1, pErrorCode); in utrie2_swap()
170 ds->swapArray16(ds, inTrie+1, trie.indexLength*2, outTrie+1, pErrorCode); in utrie2_swap()
171 ds->swapArray32(ds, (const uint16_t *)(inTrie+1)+trie.indexLength, dataLength*4, in utrie2_swap()
172 (uint16_t *)(outTrie+1)+trie.indexLength, pErrorCode); in utrie2_swap()
188 UCPTrieHeader trie; in ucptrie_swap() local
207 trie.signature=ds->readUInt32(inTrie->signature); in ucptrie_swap()
208 trie.options=ds->readUInt16(inTrie->options); in ucptrie_swap()
209 trie.indexLength=ds->readUInt16(inTrie->indexLength); in ucptrie_swap()
210 trie.dataLength = ds->readUInt16(inTrie->dataLength); in ucptrie_swap()
212 UCPTrieType type = (UCPTrieType)((trie.options >> 6) & 3); in ucptrie_swap()
213 valueWidth = (UCPTrieValueWidth)(trie.options & UCPTRIE_OPTIONS_VALUE_BITS_MASK); in ucptrie_swap()
214 … dataLength = ((int32_t)(trie.options & UCPTRIE_OPTIONS_DATA_LENGTH_MASK) << 4) | trie.dataLength; in ucptrie_swap()
218 if( trie.signature!=UCPTRIE_SIG || in ucptrie_swap()
220 (trie.options & UCPTRIE_OPTIONS_RESERVED_MASK) != 0 || in ucptrie_swap()
222 trie.indexLength < minIndexLength || in ucptrie_swap()
229 size=sizeof(UCPTrieHeader)+trie.indexLength*2; in ucptrie_swap()
262 ds->swapArray16(ds, inTrie+1, (trie.indexLength+dataLength)*2, outTrie+1, pErrorCode); in ucptrie_swap()
265 ds->swapArray16(ds, inTrie+1, trie.indexLength*2, outTrie+1, pErrorCode); in ucptrie_swap()
266 ds->swapArray32(ds, (const uint16_t *)(inTrie+1)+trie.indexLength, dataLength*4, in ucptrie_swap()
267 (uint16_t *)(outTrie+1)+trie.indexLength, pErrorCode); in ucptrie_swap()
270 ds->swapArray16(ds, inTrie+1, trie.indexLength*2, outTrie+1, pErrorCode); in ucptrie_swap()
272 uprv_memmove((outTrie+1)+trie.indexLength, (inTrie+1)+trie.indexLength, dataLength); in ucptrie_swap()