/external/icu/icu4c/source/common/ |
D | utrie.cpp | 108 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 …]
|
D | utrie2.cpp | 93 trie->data32==NULL ? trie->indexLength : 0, in u8Index() 172 tempTrie.indexLength=header->indexLength; in utrie2_openFromSerialized() 180 tempTrie.highValueIndex+=tempTrie.indexLength; in utrie2_openFromSerialized() 184 actualLength=(int32_t)sizeof(UTrie2Header)+tempTrie.indexLength*2; in utrie2_openFromSerialized() 209 p16+=trie->indexLength; in utrie2_openFromSerialized() 244 int32_t indexLength, dataLength, length, i; in utrie2_openDummy() local 257 indexLength=UTRIE2_INDEX_1_OFFSET; in utrie2_openDummy() 259 length=(int32_t)sizeof(UTrie2Header)+indexLength*2; in utrie2_openDummy() 284 dataMove=indexLength; in utrie2_openDummy() 289 trie->indexLength=indexLength; in utrie2_openDummy() [all …]
|
D | ucol_swp.cpp | 61 trie.indexLength=udata_readInt32(ds, inTrie->indexLength); in utrie_swap() 67 trie.indexLength<UTRIE_BMP_INDEX_LENGTH || in utrie_swap() 68 (trie.indexLength&(UTRIE_SURROGATE_BLOCK_COUNT-1))!=0 || in utrie_swap() 78 size=sizeof(UTrieHeader)+trie.indexLength*2+trie.dataLength*(dataIs32?4:2); in utrie_swap() 95 ds->swapArray16(ds, inTrie+1, trie.indexLength*2, outTrie+1, pErrorCode); in utrie_swap() 96 ds->swapArray32(ds, (const uint16_t *)(inTrie+1)+trie.indexLength, trie.dataLength*4, in utrie_swap() 97 (uint16_t *)(outTrie+1)+trie.indexLength, pErrorCode); in utrie_swap() 99 … ds->swapArray16(ds, inTrie+1, (trie.indexLength+trie.dataLength)*2, outTrie+1, pErrorCode); in utrie_swap()
|
D | uresdata.cpp | 187 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() 1312 int32_t bundleLength, indexLength, keysBottom, keysTop, resBottom, top; in ures_swap() local 1361 indexLength=udata_readInt32(ds, inIndexes[URES_INDEX_LENGTH])&0xff; in ures_swap() 1362 if(indexLength<=URES_INDEX_MAX_TABLE_LENGTH) { in ures_swap() [all …]
|
D | utrie.h | 169 int32_t indexLength, dataLength; member 274 #define UTRIE_GET16_LATIN1(trie) ((trie)->index+(trie)->indexLength+UTRIE_DATA_BLOCK_LENGTH) 563 int32_t indexLength, dataCapacity, dataLength; member 768 int32_t indexLength; member
|
D | utrie2_builder.cpp | 348 long indexLength=trie->indexLength; in utrie_printLengths() local 350 … long totalLength=(long)sizeof(UTrieHeader)+indexLength*2+dataLength*(trie->data32!=NULL ? 4 : 2); in utrie_printLengths() 352 indexLength, dataLength, totalLength); in utrie_printLengths() 357 long indexLength=trie->indexLength; in utrie2_printLengths() local 359 … long totalLength=(long)sizeof(UTrie2Header)+indexLength*2+dataLength*(trie->data32!=NULL ? 4 : 2); in utrie2_printLengths() 361 which, indexLength, dataLength, totalLength); in utrie2_printLengths() 1332 trie->indexLength=allIndexesLength; in utrie2_freeze() 1348 header->indexLength=(uint16_t)trie->indexLength; in utrie2_freeze()
|
D | utrie2_impl.h | 64 uint16_t indexLength; member
|
D | utrie2.h | 392 #define UTRIE2_GET16(trie, c) _UTRIE2_GET((trie), index, (trie)->indexLength, (c)) 691 int32_t indexLength, dataLength; member
|
/external/icu/android_icu4j/src/main/java/android/icu/impl/ |
D | Trie2.java | 118 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() 477 dos.writeShort(header.indexLength); in serializeHeader() 486 for (i=0; i< header.indexLength; i++) { in serializeHeader() 489 bytesWritten += header.indexLength; in serializeHeader() 650 int indexLength; field in Trie2.UTrie2Header 674 int indexLength; field in Trie2
|
D | IntTrieBuilder.java | 714 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()
|
D | TrieBuilder.java | 243 protected static final int findSameIndexBlock(int index[], int indexLength, in findSameIndexBlock() argument 246 for (int block = BMP_INDEX_LENGTH_; block < indexLength; in findSameIndexBlock() 252 return indexLength; in findSameIndexBlock()
|
D | Trie2Writable.java | 342 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()
|
D | ICUResourceBundleReader.java | 258 int indexLength = indexes0 & 0xff; in init() local 259 if(indexLength <= URES_INDEX_MAX_TABLE_LENGTH) { in init() 263 if(dataLength < ((1 + indexLength) << 2) || in init() 276 if(indexLength > URES_INDEX_ATTRIBUTES) { in init() 287 int keysBottom = 1 + indexLength; in init() 307 if(indexLength > URES_INDEX_16BIT_TOP) { in init() 322 if(indexLength > URES_INDEX_POOL_CHECKSUM) { in init()
|
D | Trie2_16.java | 171 return 16+(header.indexLength+dataLength)*2; in getSerializedLength()
|
D | Trie2_32.java | 168 return 16+header.indexLength*2+dataLength*4; in getSerializedLength()
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/ |
D | Trie2.java | 116 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
|
D | IntTrieBuilder.java | 712 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()
|
D | TrieBuilder.java | 241 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()
|
D | Trie2Writable.java | 340 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()
|
D | ICUResourceBundleReader.java | 256 int indexLength = indexes0 & 0xff; in init() local 257 if(indexLength <= URES_INDEX_MAX_TABLE_LENGTH) { in init() 261 if(dataLength < ((1 + indexLength) << 2) || in init() 274 if(indexLength > URES_INDEX_ATTRIBUTES) { in init() 285 int keysBottom = 1 + indexLength; in init() 305 if(indexLength > URES_INDEX_16BIT_TOP) { in init() 320 if(indexLength > URES_INDEX_POOL_CHECKSUM) { in init()
|
D | Trie2_16.java | 169 return 16+(header.indexLength+dataLength)*2; in getSerializedLength()
|
D | Trie2_32.java | 166 return 16+header.indexLength*2+dataLength*4; in getSerializedLength()
|
/external/icu/icu4c/source/tools/toolutil/ |
D | writesrc.c | 174 … usrc_writeArray(f, indexPrefix, pTrie->index, 16, pTrie->indexLength+pTrie->dataLength, postfix); in usrc_writeUTrie2Arrays() 177 usrc_writeArray(f, indexPrefix, pTrie->index, 16, pTrie->indexLength, postfix); in usrc_writeUTrie2Arrays() 200 (long)pTrie->indexLength); in usrc_writeUTrie2Struct() 222 (long)pTrie->indexLength, (long)pTrie->dataLength, in usrc_writeUTrie2Struct()
|
/external/icu/icu4c/source/tools/genrb/ |
D | genrb.cpp | 318 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()
|