Lines Matching defs:stage2
46 uint32_t stage2[MBCS_STAGE_2_SIZE]; /* stage 2 for MBCS */
293 mbcsData->stage2[mbcsData->stage1[0]+i]=sum;
724 while(min<newBlock && mbcsData->stage2[newBlock-1]==0) {
758 if(mbcsData->stage2[idx]==0) {
786 mbcsData->stage2[i++]=(newBlock/MBCS_STAGE_3_GRANULARITY)/maxCharLength;
792 stage3Index=MBCS_STAGE_3_GRANULARITY*(uint32_t)(uint16_t)mbcsData->stage2[idx];
869 if((mbcsData->stage2[idx+(nextOffset>>MBCS_STAGE_2_SHIFT)]&(1UL<<(16+(c&0xf))))!=0 || old!=0) {
883 mbcsData->stage2[idx+(nextOffset>>4)]|=(1UL<<(16+(c&0xf)));
994 * how much less of stage2 needs to be stored.
997 * uses so much less space per block than stage2,
1293 for(i=0; i<MBCS_STAGE_2_BLOCK_SIZE && mbcsData->stage2[start+i]==0 && mbcsData->stage2[prevEnd-i]==0; ++i) {}
1301 mbcsData->stage2[newStart++]=mbcsData->stage2[start++];
1307 mbcsData->stage2[newStart++]=mbcsData->stage2[start++];
1389 i3=(uint16_t)mbcsData->stage2[i2];
1420 /* find how much of stage2 can be omitted */
1429 /* find the last stage2 block with mappings before utf8Limit */
1431 /* stage2 up to the end of this block corresponds to stageUTF8 */
1438 printf("+ omitting %lu out of %lu stage2 entries and %lu fromUBytes\n",
1548 udata_writeBlock(pData, mbcsData->stage2+stage2Start, stage2Length);