Lines Matching refs:newBlock
575 uint32_t blockSize, newTop, i, nextOffset, newBlock, min; in MBCSSingleAddFromUnicode() local
600 newBlock=mbcsData->stage2Top; in MBCSSingleAddFromUnicode()
602 min=newBlock-nextOffset; /* minimum block start with overlap */ in MBCSSingleAddFromUnicode()
603 while(min<newBlock && mbcsData->stage2Single[newBlock-1]==0) { in MBCSSingleAddFromUnicode()
604 --newBlock; in MBCSSingleAddFromUnicode()
607 newTop=newBlock+MBCS_STAGE_2_BLOCK_SIZE; in MBCSSingleAddFromUnicode()
618 mbcsData->stage1[idx]=(uint16_t)newBlock; in MBCSSingleAddFromUnicode()
634 newBlock=mbcsData->stage3Top; in MBCSSingleAddFromUnicode()
636 min=newBlock-nextOffset; /* minimum block start with overlap */ in MBCSSingleAddFromUnicode()
637 while(min<newBlock && stage3[newBlock-1]==0) { in MBCSSingleAddFromUnicode()
638 --newBlock; in MBCSSingleAddFromUnicode()
641 newTop=newBlock+blockSize; in MBCSSingleAddFromUnicode()
649 while(newBlock<newTop) { in MBCSSingleAddFromUnicode()
650 mbcsData->stage2Single[i++]=(uint16_t)newBlock; in MBCSSingleAddFromUnicode()
651 newBlock+=MBCS_STAGE_3_BLOCK_SIZE; in MBCSSingleAddFromUnicode()
694 uint32_t blockSize, newTop, i, nextOffset, newBlock, min, overlap, maxOverlap; in MBCSAddFromUnicode() local
730 newBlock=mbcsData->stage2Top; in MBCSAddFromUnicode()
732 min=newBlock-nextOffset; /* minimum block start with overlap */ in MBCSAddFromUnicode()
733 while(min<newBlock && mbcsData->stage2[newBlock-1]==0) { in MBCSAddFromUnicode()
734 --newBlock; in MBCSAddFromUnicode()
737 newTop=newBlock+MBCS_STAGE_2_BLOCK_SIZE; in MBCSAddFromUnicode()
750 while(newBlock<newTop) { in MBCSAddFromUnicode()
751 mbcsData->stage1[i++]=(uint16_t)newBlock; in MBCSAddFromUnicode()
752 newBlock+=MBCS_STAGE_2_BLOCK_SIZE; in MBCSAddFromUnicode()
769 newBlock=mbcsData->stage3Top; in MBCSAddFromUnicode()
777 overlap<maxOverlap && stage3[newBlock-overlap-1]==0; in MBCSAddFromUnicode()
783 newBlock-=overlap; in MBCSAddFromUnicode()
785 newTop=newBlock+blockSize; in MBCSAddFromUnicode()
794 while(newBlock<newTop) { in MBCSAddFromUnicode()
795 mbcsData->stage2[i++]=(newBlock/MBCS_STAGE_3_GRANULARITY)/maxCharLength; in MBCSAddFromUnicode()
796 newBlock+=MBCS_STAGE_3_BLOCK_SIZE*maxCharLength; in MBCSAddFromUnicode()