Home
last modified time | relevance | path

Searched refs:indexLength (Results 1 – 25 of 32) sorted by relevance

12

/external/icu/icu4c/source/common/
Dutrie_swap.cpp51 trie.indexLength=udata_readInt32(ds, inTrie->indexLength); 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()
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()
122 trie.indexLength=ds->readUInt16(inTrie->indexLength); in utrie2_swap()
130 trie.indexLength<UTRIE2_INDEX_1_OFFSET || in utrie2_swap()
[all …]
Dutrie.cpp108 trie->indexLength=UTRIE_MAX_INDEX_LENGTH; in utrie_open()
377 _findSameIndexBlock(const int32_t *idx, int32_t indexLength, in _findSameIndexBlock() argument
381 for(block=UTRIE_BMP_INDEX_LENGTH; block<indexLength; block+=UTRIE_SURROGATE_BLOCK_COUNT) { in _findSameIndexBlock()
391 return indexLength; in _findSameIndexBlock()
410 int32_t indexLength, block; in utrie_fold() local
454 indexLength=UTRIE_BMP_INDEX_LENGTH; in utrie_fold()
468 block=_findSameIndexBlock(idx, indexLength, c>>UTRIE_SHIFT); in utrie_fold()
484 if(block==indexLength) { in utrie_fold()
486 uprv_memmove(idx+indexLength, in utrie_fold()
489 indexLength+=UTRIE_SURROGATE_BLOCK_COUNT; in utrie_fold()
[all …]
Dumutablecptrie.cpp1321 int32_t indexLength = index3Start; in compactIndex() local
1339 if (indexLength == index3Start) { in compactIndex()
1343 n = getOverlap(index16, indexLength, in compactIndex()
1346 i3 = indexLength - n; in compactIndex()
1347 int32_t prevIndexLength = indexLength; in compactIndex()
1349 index16[indexLength++] = index[i + n++]; in compactIndex()
1351 mixedBlocks.extend(index16, index3Start, prevIndexLength, indexLength); in compactIndex()
1353 longI3Blocks.extend(index16, index3Start, prevIndexLength, indexLength); in compactIndex()
1362 int32_t k = indexLength; in compactIndex()
1391 int32_t n = longI3Blocks.findBlock(index16, index16, indexLength); in compactIndex()
[all …]
Dutrie2.cpp92 trie->data32==NULL ? trie->indexLength : 0, in u8Index()
171 tempTrie.indexLength=header->indexLength; in utrie2_openFromSerialized()
179 tempTrie.highValueIndex+=tempTrie.indexLength; in utrie2_openFromSerialized()
183 actualLength=(int32_t)sizeof(UTrie2Header)+tempTrie.indexLength*2; in utrie2_openFromSerialized()
211 p16+=trie->indexLength; in utrie2_openFromSerialized()
246 int32_t indexLength, dataLength, length, i; in utrie2_openDummy() local
259 indexLength=UTRIE2_INDEX_1_OFFSET; in utrie2_openDummy()
261 length=(int32_t)sizeof(UTrie2Header)+indexLength*2; in utrie2_openDummy()
286 dataMove=indexLength; in utrie2_openDummy()
291 trie->indexLength=indexLength; in utrie2_openDummy()
[all …]
Ducptrie.cpp73 tempTrie.indexLength = header->indexLength; in ucptrie_openFromBinary()
86 int32_t actualLength = (int32_t)sizeof(UCPTrieHeader) + tempTrie.indexLength * 2; in ucptrie_openFromBinary()
113 p16 += trie->indexLength; in ucptrie_openFromBinary()
487 int32_t length = (int32_t)sizeof(UCPTrieHeader) + trie->indexLength * 2; in ucptrie_toBinary()
515 header->indexLength = (uint16_t)trie->indexLength; in ucptrie_toBinary()
522 uprv_memcpy(bytes, trie->index, trie->indexLength * 2); in ucptrie_toBinary()
523 bytes += trie->indexLength * 2; in ucptrie_toBinary()
574 long indexLength=trie->indexLength; in ucptrie_printLengths() local
576 long totalLength=(long)sizeof(UCPTrieHeader)+indexLength*2+ in ucptrie_printLengths()
580 which, trie->name, indexLength, dataLength, countNull(trie), totalLength); in ucptrie_printLengths()
Duresdata.cpp187 int32_t indexLength=indexes[URES_INDEX_LENGTH]&0xff; in res_init() local
188 if(indexLength<=URES_INDEX_MAX_TABLE_LENGTH) { in res_init()
194 (length<((1+indexLength)<<2) || in res_init()
201 if(indexes[URES_INDEX_KEYS_TOP]>(1+indexLength)) { in res_init()
211 if(indexLength>URES_INDEX_ATTRIBUTES) { in res_init()
219 …if((pResData->isPoolBundle || pResData->usesPoolBundle) && indexLength<=URES_INDEX_POOL_CHECKSUM) { in res_init()
224 if( indexLength>URES_INDEX_16BIT_TOP && in res_init()
1316 int32_t bundleLength, indexLength, keysBottom, keysTop, resBottom, top; in ures_swap() local
1365 indexLength=udata_readInt32(ds, inIndexes[URES_INDEX_LENGTH])&0xff; in ures_swap()
1366 if(indexLength<=URES_INDEX_MAX_TABLE_LENGTH) { in ures_swap()
[all …]
Dutrie.h168 int32_t indexLength, dataLength; member
273 #define UTRIE_GET16_LATIN1(trie) ((trie)->index+(trie)->indexLength+UTRIE_DATA_BLOCK_LENGTH)
562 int32_t indexLength, dataCapacity, dataLength; member
763 int32_t indexLength; member
Dutrie2_builder.cpp385 long indexLength=trie->indexLength; in utrie_printLengths() local
387 … long totalLength=(long)sizeof(UTrieHeader)+indexLength*2+dataLength*(trie->data32!=NULL ? 4 : 2); in utrie_printLengths()
389 indexLength, dataLength, totalLength); in utrie_printLengths()
394 long indexLength=trie->indexLength; in utrie2_printLengths() local
396 … long totalLength=(long)sizeof(UTrie2Header)+indexLength*2+dataLength*(trie->data32!=NULL ? 4 : 2); in utrie2_printLengths()
398 which, trie->name, indexLength, dataLength, countInitial(trie), totalLength); in utrie2_printLengths()
1385 trie->indexLength=allIndexesLength; in utrie2_freeze()
1401 header->indexLength=(uint16_t)trie->indexLength; in utrie2_freeze()
Dutrie2_impl.h62 uint16_t indexLength; member
Ducptrie_impl.h39 uint16_t indexLength; member
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/util/
DMutableCodePointTrie.java1223 int indexLength = index3Start; in compactIndex() local
1241 if (indexLength == index3Start) { in compactIndex()
1245 n = getOverlap(index16, indexLength, in compactIndex()
1248 i3 = indexLength - n; in compactIndex()
1249 int prevIndexLength = indexLength; in compactIndex()
1251 index16[indexLength++] = (char)index[i + n++]; in compactIndex()
1253 mixedBlocks.extend(index16, index3Start, prevIndexLength, indexLength); in compactIndex()
1255 longI3Blocks.extend(index16, index3Start, prevIndexLength, indexLength); in compactIndex()
1264 int k = indexLength; in compactIndex()
1293 int n = longI3Blocks.findBlock(index16, index16, indexLength); in compactIndex()
[all …]
/external/icu/android_icu4j/src/main/java/android/icu/util/
DMutableCodePointTrie.java1216 int indexLength = index3Start; in compactIndex() local
1234 if (indexLength == index3Start) { in compactIndex()
1238 n = getOverlap(index16, indexLength, in compactIndex()
1241 i3 = indexLength - n; in compactIndex()
1242 int prevIndexLength = indexLength; in compactIndex()
1244 index16[indexLength++] = (char)index[i + n++]; in compactIndex()
1246 mixedBlocks.extend(index16, index3Start, prevIndexLength, indexLength); in compactIndex()
1248 longI3Blocks.extend(index16, index3Start, prevIndexLength, indexLength); in compactIndex()
1257 int k = indexLength; in compactIndex()
1286 int n = longI3Blocks.findBlock(index16, index16, indexLength); in compactIndex()
[all …]
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/
DTrie2.java116 header.indexLength = bytes.getChar(); in createFromSerialized()
139 This.indexLength = header.indexLength; in createFromSerialized()
146 This.highValueIndex += This.indexLength; in createFromSerialized()
152 int indexArraySize = This.indexLength; in createFromSerialized()
164 This.data16 = This.indexLength; in createFromSerialized()
475 dos.writeShort(header.indexLength); in serializeHeader()
484 for (i=0; i< header.indexLength; i++) { in serializeHeader()
487 bytesWritten += header.indexLength; in serializeHeader()
648 int indexLength; field in Trie2.UTrie2Header
672 int indexLength; field in Trie2
DIntTrieBuilder.java712 int indexLength = BMP_INDEX_LENGTH_; in fold() local
719 block = findSameIndexBlock(index, indexLength, c >> SHIFT_); in fold()
734 if (block == indexLength) { in fold()
737 System.arraycopy(index, c >> SHIFT_, index, indexLength, in fold()
739 indexLength += SURROGATE_BLOCK_COUNT_; in fold()
757 if (indexLength >= MAX_INDEX_LENGTH_) { in fold()
764 indexLength - BMP_INDEX_LENGTH_); in fold()
767 indexLength += SURROGATE_BLOCK_COUNT_; in fold()
768 m_indexLength_ = indexLength; in fold()
DTrieBuilder.java241 protected static final int findSameIndexBlock(int index[], int indexLength, in findSameIndexBlock() argument
244 for (int block = BMP_INDEX_LENGTH_; block < indexLength; in findSameIndexBlock()
250 return indexLength; in findSameIndexBlock()
DTrie2Writable.java340 this.indexLength = tempTrie.indexLength; in uncompact()
1053 int indexLength = allIndexesLength; in freeze() local
1055 indexLength += dataLength; in freeze()
1059 dest.index = new char[indexLength]; in freeze()
1061 dest.indexLength = allIndexesLength; in freeze()
1080 dest.header.indexLength = dest.indexLength; in freeze()
DICUResourceBundleReader.java257 int indexLength = indexes0 & 0xff; in init() local
258 if(indexLength <= URES_INDEX_MAX_TABLE_LENGTH) { in init()
262 if(dataLength < ((1 + indexLength) << 2) || in init()
275 if(indexLength > URES_INDEX_ATTRIBUTES) { in init()
286 int keysBottom = 1 + indexLength; in init()
306 if(indexLength > URES_INDEX_16BIT_TOP) { in init()
321 if(indexLength > URES_INDEX_POOL_CHECKSUM) { in init()
DTrie2_32.java166 return 16+header.indexLength*2+dataLength*4; in getSerializedLength()
/external/icu/android_icu4j/src/main/java/android/icu/impl/
DTrie2.java118 header.indexLength = bytes.getChar(); in createFromSerialized()
141 This.indexLength = header.indexLength; in createFromSerialized()
148 This.highValueIndex += This.indexLength; in createFromSerialized()
154 int indexArraySize = This.indexLength; in createFromSerialized()
166 This.data16 = This.indexLength; in createFromSerialized()
479 dos.writeShort(header.indexLength); in serializeHeader()
488 for (i=0; i< header.indexLength; i++) { in serializeHeader()
491 bytesWritten += header.indexLength; in serializeHeader()
654 int indexLength; field in Trie2.UTrie2Header
678 int indexLength; field in Trie2
DIntTrieBuilder.java714 int indexLength = BMP_INDEX_LENGTH_; in fold() local
721 block = findSameIndexBlock(index, indexLength, c >> SHIFT_); in fold()
736 if (block == indexLength) { in fold()
739 System.arraycopy(index, c >> SHIFT_, index, indexLength, in fold()
741 indexLength += SURROGATE_BLOCK_COUNT_; in fold()
759 if (indexLength >= MAX_INDEX_LENGTH_) { in fold()
766 indexLength - BMP_INDEX_LENGTH_); in fold()
769 indexLength += SURROGATE_BLOCK_COUNT_; in fold()
770 m_indexLength_ = indexLength; in fold()
DTrieBuilder.java244 protected static final int findSameIndexBlock(int index[], int indexLength, in findSameIndexBlock() argument
247 for (int block = BMP_INDEX_LENGTH_; block < indexLength; in findSameIndexBlock()
253 return indexLength; in findSameIndexBlock()
DTrie2Writable.java342 this.indexLength = tempTrie.indexLength; in uncompact()
1055 int indexLength = allIndexesLength; in freeze() local
1057 indexLength += dataLength; in freeze()
1061 dest.index = new char[indexLength]; in freeze()
1063 dest.indexLength = allIndexesLength; in freeze()
1082 dest.header.indexLength = dest.indexLength; in freeze()
DICUResourceBundleReader.java259 int indexLength = indexes0 & 0xff; in init() local
260 if(indexLength <= URES_INDEX_MAX_TABLE_LENGTH) { in init()
264 if(dataLength < ((1 + indexLength) << 2) || in init()
277 if(indexLength > URES_INDEX_ATTRIBUTES) { in init()
288 int keysBottom = 1 + indexLength; in init()
308 if(indexLength > URES_INDEX_16BIT_TOP) { in init()
323 if(indexLength > URES_INDEX_POOL_CHECKSUM) { in init()
/external/icu/icu4c/source/tools/toolutil/
Dwritesrc.cpp189 … usrc_writeArray(f, indexPrefix, pTrie->index, 16, pTrie->indexLength+pTrie->dataLength, postfix); in usrc_writeUTrie2Arrays()
192 usrc_writeArray(f, indexPrefix, pTrie->index, 16, pTrie->indexLength, postfix); in usrc_writeUTrie2Arrays()
215 (long)pTrie->indexLength); in usrc_writeUTrie2Struct()
237 (long)pTrie->indexLength, (long)pTrie->dataLength, in usrc_writeUTrie2Struct()
251 usrc_writeArray(f, indexPrefix, pTrie->index, 16, pTrie->indexLength, postfix); in usrc_writeUCPTrieArrays()
282 (long)pTrie->indexLength, (long)pTrie->dataLength, in usrc_writeUCPTrieStruct()
/external/icu/icu4c/source/tools/genrb/
Dgenrb.cpp318 int32_t indexLength; in main() local
387 indexLength = poolBundle.fIndexes[URES_INDEX_LENGTH] & 0xff; in main()
388 if (indexLength <= URES_INDEX_POOL_CHECKSUM) { in main()
392 int32_t keysBottom = 1 + indexLength; in main()

12