Lines Matching refs:logicalStart
326 logicalFirst=GET_INDEX(iRun.logicalStart); in ubidi_getLogicalRun()
339 *pLevel=(UBiDiLevel)GET_ODD_BIT(iRun.logicalStart); in ubidi_getLogicalRun()
375 start=pBiDi->runs[runIndex].logicalStart; in ubidi_getVisualRun()
398 pBiDi->runs[0].logicalStart=MAKE_INDEX_ODD_PAIR(0, level); in getSingleRun()
470 while(firstRun<runCount && levels[runs[firstRun].logicalStart]<maxLevel) { in reorderLine()
478 … for(limitRun=firstRun; ++limitRun<runCount && levels[runs[limitRun].logicalStart]>=maxLevel;) {} in reorderLine()
522 int32_t runCount=pBiDi->runCount, visualStart=0, i, length, logicalStart; in getRunFromLogicalIndex() local
526 logicalStart=GET_INDEX(runs[i].logicalStart); in getRunFromLogicalIndex()
527 if((logicalIndex>=logicalStart) && (logicalIndex<(logicalStart+length))) { in getRunFromLogicalIndex()
639 runs[runIndex].logicalStart=start; in ubidi_getRuns()
647 runs[runIndex].logicalStart=limit; in ubidi_getRuns()
666 ADD_ODD_BIT_FROM_LEVEL(runs[i].logicalStart, levels[runs[i].logicalStart]); in ubidi_getRuns()
678 ADD_ODD_BIT_FROM_LEVEL(runs[trailingRun].logicalStart, pBiDi->paraLevel); in ubidi_getRuns()
900 offset=logicalIndex-GET_INDEX(runs[i].logicalStart); in ubidi_getVisualIndex()
902 if(IS_EVEN_RUN(runs[i].logicalStart)) { in ubidi_getVisualIndex()
962 if(IS_EVEN_RUN(runs[i].logicalStart)) { in ubidi_getVisualIndex()
964 start=runs[i].logicalStart; in ubidi_getVisualIndex()
969 limit=GET_INDEX(runs[i].logicalStart)+length; in ubidi_getVisualIndex()
1038 int32_t logicalStart, logicalEnd, visualStart=0, j, k; in ubidi_getLogicalIndex() local
1056 logicalStart=runs[i].logicalStart; in ubidi_getLogicalIndex()
1057 evenRun=IS_EVEN_RUN(logicalStart); in ubidi_getLogicalIndex()
1058 REMOVE_ODD_BIT(logicalStart); in ubidi_getLogicalIndex()
1059 logicalEnd=logicalStart+length-1; in ubidi_getLogicalIndex()
1061 k= evenRun ? logicalStart+j : logicalEnd-j; in ubidi_getLogicalIndex()
1095 start=runs[i].logicalStart; in ubidi_getLogicalIndex()
1121 int32_t logicalStart, logicalLimit; in ubidi_getLogicalMap() local
1132 logicalStart=GET_INDEX(runs[j].logicalStart); in ubidi_getLogicalMap()
1134 if(IS_EVEN_RUN(runs[j].logicalStart)) { in ubidi_getLogicalMap()
1136 indexMap[logicalStart++]=visualStart++; in ubidi_getLogicalMap()
1139 logicalStart+=visualLimit-visualStart; /* logicalLimit */ in ubidi_getLogicalMap()
1141 indexMap[--logicalStart]=visualStart++; in ubidi_getLogicalMap()
1159 logicalStart=GET_INDEX(runs[i].logicalStart); in ubidi_getLogicalMap()
1160 logicalLimit=logicalStart+length; in ubidi_getLogicalMap()
1161 for(j=logicalStart; j<logicalLimit; j++) { in ubidi_getLogicalMap()
1184 logicalStart=runs[i].logicalStart; in ubidi_getLogicalMap()
1185 evenRun=IS_EVEN_RUN(logicalStart); in ubidi_getLogicalMap()
1186 REMOVE_ODD_BIT(logicalStart); in ubidi_getLogicalMap()
1187 logicalLimit=logicalStart+length; in ubidi_getLogicalMap()
1190 for(j=logicalStart; j<logicalLimit; j++) { in ubidi_getLogicalMap()
1196 k= evenRun ? logicalStart+j : logicalLimit-j-1; in ubidi_getLogicalMap()
1222 int32_t logicalStart, visualStart, visualLimit, *pi=indexMap; in ubidi_getVisualMap() local
1229 logicalStart=runs->logicalStart; in ubidi_getVisualMap()
1231 if(IS_EVEN_RUN(logicalStart)) { in ubidi_getVisualMap()
1233 *pi++ = logicalStart++; in ubidi_getVisualMap()
1236 REMOVE_ODD_BIT(logicalStart); in ubidi_getVisualMap()
1237 logicalStart+=visualLimit-visualStart; /* logicalLimit */ in ubidi_getVisualMap()
1239 *pi++ = --logicalStart; in ubidi_getVisualMap()
1302 logicalStart=runs[i].logicalStart; in ubidi_getVisualMap()
1303 evenRun=IS_EVEN_RUN(logicalStart); in ubidi_getVisualMap()
1304 REMOVE_ODD_BIT(logicalStart); in ubidi_getVisualMap()
1305 logicalEnd=logicalStart+length-1; in ubidi_getVisualMap()
1307 m= evenRun ? logicalStart+j : logicalEnd-j; in ubidi_getVisualMap()