Home
last modified time | relevance | path

Searched refs:indexLength (Results 1 – 25 of 42) 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.cpp1326 int32_t indexLength = index3Start; in compactIndex() local
1344 if (indexLength == index3Start) { in compactIndex()
1348 n = getOverlap(index16, indexLength, in compactIndex()
1351 i3 = indexLength - n; in compactIndex()
1352 int32_t prevIndexLength = indexLength; in compactIndex()
1354 index16[indexLength++] = index[i + n++]; in compactIndex()
1356 mixedBlocks.extend(index16, index3Start, prevIndexLength, indexLength); in compactIndex()
1358 longI3Blocks.extend(index16, index3Start, prevIndexLength, indexLength); in compactIndex()
1367 int32_t k = indexLength; in compactIndex()
1396 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.cpp188 int32_t indexLength=indexes[URES_INDEX_LENGTH]&0xff; in res_init() local
189 if(indexLength<=URES_INDEX_MAX_TABLE_LENGTH) { in res_init()
195 (length<((1+indexLength)<<2) || in res_init()
202 if(indexes[URES_INDEX_KEYS_TOP]>(1+indexLength)) { in res_init()
212 if(indexLength>URES_INDEX_ATTRIBUTES) { in res_init()
220 …if((pResData->isPoolBundle || pResData->usesPoolBundle) && indexLength<=URES_INDEX_POOL_CHECKSUM) { in res_init()
225 if( indexLength>URES_INDEX_16BIT_TOP && in res_init()
1352 int32_t bundleLength, indexLength, keysBottom, keysTop, resBottom, top; in ures_swap() local
1401 indexLength=udata_readInt32(ds, inIndexes[URES_INDEX_LENGTH])&0xff; in ures_swap()
1402 if(indexLength<=URES_INDEX_MAX_TABLE_LENGTH) { in ures_swap()
[all …]
Dutrie.h168 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
764 int32_t indexLength; member
Dutrie2_builder.cpp387 long indexLength=trie->indexLength; in utrie_printLengths() local
389 … long totalLength=(long)sizeof(UTrieHeader)+indexLength*2+dataLength*(trie->data32!=NULL ? 4 : 2); in utrie_printLengths()
391 indexLength, dataLength, totalLength); in utrie_printLengths()
396 long indexLength=trie->indexLength; in utrie2_printLengths() local
398 … long totalLength=(long)sizeof(UTrie2Header)+indexLength*2+dataLength*(trie->data32!=NULL ? 4 : 2); in utrie2_printLengths()
400 which, trie->name, indexLength, dataLength, countInitial(trie), totalLength); in utrie2_printLengths()
1387 trie->indexLength=allIndexesLength; in utrie2_freeze()
1403 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/android_icu4j/src/main/java/android/icu/util/
DMutableCodePointTrie.java1206 int indexLength = index3Start; in compactIndex() local
1224 if (indexLength == index3Start) { in compactIndex()
1228 n = getOverlap(index16, indexLength, in compactIndex()
1231 i3 = indexLength - n; in compactIndex()
1232 int prevIndexLength = indexLength; in compactIndex()
1234 index16[indexLength++] = (char)index[i + n++]; in compactIndex()
1236 mixedBlocks.extend(index16, index3Start, prevIndexLength, indexLength); in compactIndex()
1238 longI3Blocks.extend(index16, index3Start, prevIndexLength, indexLength); in compactIndex()
1247 int k = indexLength; in compactIndex()
1276 int n = longI3Blocks.findBlock(index16, index16, indexLength); in compactIndex()
[all …]
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/util/
DMutableCodePointTrie.java1214 int indexLength = index3Start; in compactIndex() local
1232 if (indexLength == index3Start) { in compactIndex()
1236 n = getOverlap(index16, indexLength, in compactIndex()
1239 i3 = indexLength - n; in compactIndex()
1240 int prevIndexLength = indexLength; in compactIndex()
1242 index16[indexLength++] = (char)index[i + n++]; in compactIndex()
1244 mixedBlocks.extend(index16, index3Start, prevIndexLength, indexLength); in compactIndex()
1246 longI3Blocks.extend(index16, index3Start, prevIndexLength, indexLength); in compactIndex()
1255 int k = indexLength; in compactIndex()
1284 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()
/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()
/external/exoplayer/tree/library/dash/src/main/java/com/google/android/exoplayer2/source/dash/manifest/
DSegmentBase.java72 /* package */ final long indexLength; field in SegmentBase.SingleSegmentBase
88 long indexLength) { in SingleSegmentBase() argument
91 this.indexLength = indexLength; in SingleSegmentBase()
105 return indexLength <= 0 in getIndex()
107 : new RangedUri(/* referenceUri= */ null, indexStart, indexLength); in getIndex()
/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/libicu/cts_headers/
Dutrie.h168 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
764 int32_t indexLength; member
Dutrie2_impl.h62 uint16_t indexLength; member
Ducptrie_impl.h39 uint16_t indexLength; member

12