Lines Matching refs:indexLength
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()
512 if(indexLength>=UTRIE_MAX_INDEX_LENGTH) { in utrie_fold()
523 4*(indexLength-UTRIE_BMP_INDEX_LENGTH)); in utrie_fold()
527 indexLength+=UTRIE_SURROGATE_BLOCK_COUNT; in utrie_fold()
531 UTRIE_BMP_INDEX_LENGTH, (long)UTRIE_MAX_INDEX_LENGTH, indexLength); in utrie_fold()
534 trie->indexLength=indexLength; in utrie_fold()
553 for(i=0; i<trie->indexLength; ++i) { in _findUnusedBlocks()
684 for(i=0; i<trie->indexLength; ++i) { in utrie_compact()
784 …if( (reduceTo16Bits ? (trie->dataLength+trie->indexLength) : trie->dataLength) >= UTRIE_MAX_DATA_L… in utrie_serialize()
788 length=sizeof(UTrieHeader)+2*trie->indexLength; in utrie_serialize()
801 (long)trie->indexLength, (long)trie->dataLength, (long)length); in utrie_serialize()
818 header->indexLength=trie->indexLength; in utrie_serialize()
826 for(i=trie->indexLength; i>0; --i) { in utrie_serialize()
827 *dest16++=(uint16_t)((*p++ + trie->indexLength)>>UTRIE_INDEX_SHIFT); in utrie_serialize()
839 for(i=trie->indexLength; i>0; --i) { in utrie_serialize()
890 trie->indexLength=header->indexLength; in utrie_unserialize()
896 if(length<2*trie->indexLength) { in utrie_unserialize()
902 p16+=trie->indexLength; in utrie_unserialize()
903 length-=2*trie->indexLength; in utrie_unserialize()
913 length=(int32_t)sizeof(UTrieHeader)+2*trie->indexLength+4*trie->dataLength; in utrie_unserialize()
922 trie->initialValue=trie->index[trie->indexLength]; in utrie_unserialize()
923 length=(int32_t)sizeof(UTrieHeader)+2*trie->indexLength+2*trie->dataLength; in utrie_unserialize()
950 trie->indexLength=UTRIE_BMP_INDEX_LENGTH+UTRIE_SURROGATE_BLOCK_COUNT; in utrie_unserializeDummy()
956 actualLength=trie->indexLength*2; in utrie_unserializeDummy()
978 block=(uint16_t)(trie->indexLength>>UTRIE_INDEX_SHIFT); in utrie_unserializeDummy()
979 limit=trie->indexLength; in utrie_unserializeDummy()
997 p16+=trie->indexLength; in utrie_unserializeDummy()
1013 uprv_memset(p16, 0, trie->indexLength*2); in utrie_unserializeDummy()
1025 trie->data32=p32=(uint32_t *)(p16+trie->indexLength); in utrie_unserializeDummy()
1083 nullBlock=trie->indexLength; in utrie_enum()