Lines Matching refs:newBlock
475 int32_t newBlock, newTop; in allocIndex2Block() local
477 newBlock=trie->index2Length; in allocIndex2Block()
478 newTop=newBlock+UTRIE2_INDEX_2_BLOCK_LENGTH; in allocIndex2Block()
488 …uprv_memcpy(trie->index2+newBlock, trie->index2+trie->index2NullOffset, UTRIE2_INDEX_2_BLOCK_LENGT… in allocIndex2Block()
489 return newBlock; in allocIndex2Block()
514 int32_t newBlock, newTop; in allocDataBlock() local
518 newBlock=trie->firstFreeBlock; in allocDataBlock()
519 trie->firstFreeBlock=-trie->map[newBlock>>UTRIE2_SHIFT_2]; in allocDataBlock()
522 newBlock=trie->dataLength; in allocDataBlock()
523 newTop=newBlock+UTRIE2_DATA_BLOCK_LENGTH; in allocDataBlock()
552 uprv_memcpy(trie->data+newBlock, trie->data+copyBlock, UTRIE2_DATA_BLOCK_LENGTH*4); in allocDataBlock()
553 trie->map[newBlock>>UTRIE2_SHIFT_2]=0; in allocDataBlock()
554 return newBlock; in allocDataBlock()
589 int32_t i2, oldBlock, newBlock; in getDataBlock() local
603 newBlock=allocDataBlock(trie, oldBlock); in getDataBlock()
604 if(newBlock<0) { in getDataBlock()
608 setIndex2Entry(trie, i2, newBlock); in getDataBlock()
609 return newBlock; in getDataBlock()