Lines Matching defs:indexLength
106 trie->indexLength=UTRIE_MAX_INDEX_LENGTH;
375 _findSameIndexBlock(const int32_t *idx, int32_t indexLength,
379 for(block=UTRIE_BMP_INDEX_LENGTH; block<indexLength; block+=UTRIE_SURROGATE_BLOCK_COUNT) {
389 return indexLength;
408 int32_t indexLength, block;
452 indexLength=UTRIE_BMP_INDEX_LENGTH;
466 block=_findSameIndexBlock(idx, indexLength, c>>UTRIE_SHIFT);
482 if(block==indexLength) {
484 uprv_memmove(idx+indexLength,
487 indexLength+=UTRIE_SURROGATE_BLOCK_COUNT;
510 if(indexLength>=UTRIE_MAX_INDEX_LENGTH) {
521 4*(indexLength-UTRIE_BMP_INDEX_LENGTH));
525 indexLength+=UTRIE_SURROGATE_BLOCK_COUNT;
529 UTRIE_BMP_INDEX_LENGTH, (long)UTRIE_MAX_INDEX_LENGTH, indexLength);
532 trie->indexLength=indexLength;
551 for(i=0; i<trie->indexLength; ++i) {
682 for(i=0; i<trie->indexLength; ++i) {
764 /* fold and compact if necessary, also checks that indexLength is within limits */
782 if( (reduceTo16Bits ? (trie->dataLength+trie->indexLength) : trie->dataLength) >= UTRIE_MAX_DATA_LENGTH) {
786 length=sizeof(UTrieHeader)+2*trie->indexLength;
799 (long)trie->indexLength, (long)trie->dataLength, (long)length);
816 header->indexLength=trie->indexLength;
821 /* write 16-bit index values shifted right by UTRIE_INDEX_SHIFT, after adding indexLength */
824 for(i=trie->indexLength; i>0; --i) {
825 *dest16++=(uint16_t)((*p++ + trie->indexLength)>>UTRIE_INDEX_SHIFT);
837 for(i=trie->indexLength; i>0; --i) {
888 trie->indexLength=header->indexLength;
894 if(length<2*trie->indexLength) {
900 p16+=trie->indexLength;
901 length-=2*trie->indexLength;
911 length=(int32_t)sizeof(UTrieHeader)+2*trie->indexLength+4*trie->dataLength;
920 trie->initialValue=trie->index[trie->indexLength];
921 length=(int32_t)sizeof(UTrieHeader)+2*trie->indexLength+2*trie->dataLength;
948 trie->indexLength=UTRIE_BMP_INDEX_LENGTH+UTRIE_SURROGATE_BLOCK_COUNT;
954 actualLength=trie->indexLength*2;
976 block=(uint16_t)(trie->indexLength>>UTRIE_INDEX_SHIFT);
977 limit=trie->indexLength;
995 p16+=trie->indexLength;
1011 uprv_memset(p16, 0, trie->indexLength*2);
1023 trie->data32=p32=(uint32_t *)(p16+trie->indexLength);
1081 nullBlock=trie->indexLength;