Lines Matching refs:indexLength
106 trie->indexLength=UTRIE_MAX_INDEX_LENGTH; in utrie_open()
375 _findSameIndexBlock(const int32_t *idx, int32_t indexLength, in _findSameIndexBlock() argument
379 for(block=UTRIE_BMP_INDEX_LENGTH; block<indexLength; block+=UTRIE_SURROGATE_BLOCK_COUNT) { in _findSameIndexBlock()
389 return indexLength; in _findSameIndexBlock()
408 int32_t indexLength, block; in utrie_fold() local
452 indexLength=UTRIE_BMP_INDEX_LENGTH; in utrie_fold()
466 block=_findSameIndexBlock(idx, indexLength, c>>UTRIE_SHIFT); in utrie_fold()
482 if(block==indexLength) { in utrie_fold()
484 uprv_memmove(idx+indexLength, in utrie_fold()
487 indexLength+=UTRIE_SURROGATE_BLOCK_COUNT; in utrie_fold()
510 if(indexLength>=UTRIE_MAX_INDEX_LENGTH) { in utrie_fold()
521 4*(indexLength-UTRIE_BMP_INDEX_LENGTH)); in utrie_fold()
525 indexLength+=UTRIE_SURROGATE_BLOCK_COUNT; in utrie_fold()
529 UTRIE_BMP_INDEX_LENGTH, (long)UTRIE_MAX_INDEX_LENGTH, indexLength); in utrie_fold()
532 trie->indexLength=indexLength; in utrie_fold()
551 for(i=0; i<trie->indexLength; ++i) { in _findUnusedBlocks()
682 for(i=0; i<trie->indexLength; ++i) { in utrie_compact()
782 …if( (reduceTo16Bits ? (trie->dataLength+trie->indexLength) : trie->dataLength) >= UTRIE_MAX_DATA_L… in utrie_serialize()
786 length=sizeof(UTrieHeader)+2*trie->indexLength; in utrie_serialize()
799 (long)trie->indexLength, (long)trie->dataLength, (long)length); in utrie_serialize()
816 header->indexLength=trie->indexLength; in utrie_serialize()
824 for(i=trie->indexLength; i>0; --i) { in utrie_serialize()
825 *dest16++=(uint16_t)((*p++ + trie->indexLength)>>UTRIE_INDEX_SHIFT); in utrie_serialize()
837 for(i=trie->indexLength; i>0; --i) { in utrie_serialize()
888 trie->indexLength=header->indexLength; in utrie_unserialize()
894 if(length<2*trie->indexLength) { in utrie_unserialize()
900 p16+=trie->indexLength; in utrie_unserialize()
901 length-=2*trie->indexLength; in utrie_unserialize()
911 length=(int32_t)sizeof(UTrieHeader)+2*trie->indexLength+4*trie->dataLength; in utrie_unserialize()
920 trie->initialValue=trie->index[trie->indexLength]; in utrie_unserialize()
921 length=(int32_t)sizeof(UTrieHeader)+2*trie->indexLength+2*trie->dataLength; in utrie_unserialize()
948 trie->indexLength=UTRIE_BMP_INDEX_LENGTH+UTRIE_SURROGATE_BLOCK_COUNT; in utrie_unserializeDummy()
954 actualLength=trie->indexLength*2; in utrie_unserializeDummy()
976 block=(uint16_t)(trie->indexLength>>UTRIE_INDEX_SHIFT); in utrie_unserializeDummy()
977 limit=trie->indexLength; in utrie_unserializeDummy()
995 p16+=trie->indexLength; in utrie_unserializeDummy()
1011 uprv_memset(p16, 0, trie->indexLength*2); in utrie_unserializeDummy()
1023 trie->data32=p32=(uint32_t *)(p16+trie->indexLength); in utrie_unserializeDummy()
1081 nullBlock=trie->indexLength; in utrie_enum()