Lines Matching refs:logicalStart
328 logicalFirst=GET_INDEX(iRun.logicalStart);
341 *pLevel=(UBiDiLevel)GET_ODD_BIT(iRun.logicalStart);
377 start=pBiDi->runs[runIndex].logicalStart;
400 pBiDi->runs[0].logicalStart=MAKE_INDEX_ODD_PAIR(0, level);
472 while(firstRun<runCount && levels[runs[firstRun].logicalStart]<maxLevel) {
480 for(limitRun=firstRun; ++limitRun<runCount && levels[runs[limitRun].logicalStart]>=maxLevel;) {}
524 int32_t runCount=pBiDi->runCount, visualStart=0, i, length, logicalStart;
528 logicalStart=GET_INDEX(runs[i].logicalStart);
529 if((logicalIndex>=logicalStart) && (logicalIndex<(logicalStart+length))) {
643 runs[runIndex].logicalStart=start;
651 runs[runIndex].logicalStart=limit;
670 ADD_ODD_BIT_FROM_LEVEL(runs[i].logicalStart, levels[runs[i].logicalStart]);
682 ADD_ODD_BIT_FROM_LEVEL(runs[trailingRun].logicalStart, pBiDi->paraLevel);
904 offset=logicalIndex-GET_INDEX(runs[i].logicalStart);
906 if(IS_EVEN_RUN(runs[i].logicalStart)) {
966 if(IS_EVEN_RUN(runs[i].logicalStart)) {
968 start=runs[i].logicalStart;
973 limit=GET_INDEX(runs[i].logicalStart)+length;
1042 int32_t logicalStart, logicalEnd, visualStart=0, j, k;
1060 logicalStart=runs[i].logicalStart;
1061 evenRun=IS_EVEN_RUN(logicalStart);
1062 REMOVE_ODD_BIT(logicalStart);
1063 logicalEnd=logicalStart+length-1;
1065 k= evenRun ? logicalStart+j : logicalEnd-j;
1099 start=runs[i].logicalStart;
1125 int32_t logicalStart, logicalLimit;
1136 logicalStart=GET_INDEX(runs[j].logicalStart);
1138 if(IS_EVEN_RUN(runs[j].logicalStart)) {
1140 indexMap[logicalStart++]=visualStart++;
1143 logicalStart+=visualLimit-visualStart; /* logicalLimit */
1145 indexMap[--logicalStart]=visualStart++;
1163 logicalStart=GET_INDEX(runs[i].logicalStart);
1164 logicalLimit=logicalStart+length;
1165 for(j=logicalStart; j<logicalLimit; j++) {
1188 logicalStart=runs[i].logicalStart;
1189 evenRun=IS_EVEN_RUN(logicalStart);
1190 REMOVE_ODD_BIT(logicalStart);
1191 logicalLimit=logicalStart+length;
1194 for(j=logicalStart; j<logicalLimit; j++) {
1200 k= evenRun ? logicalStart+j : logicalLimit-j-1;
1226 int32_t logicalStart, visualStart, visualLimit, *pi=indexMap;
1233 logicalStart=runs->logicalStart;
1235 if(IS_EVEN_RUN(logicalStart)) {
1237 *pi++ = logicalStart++;
1240 REMOVE_ODD_BIT(logicalStart);
1241 logicalStart+=visualLimit-visualStart; /* logicalLimit */
1243 *pi++ = --logicalStart;
1306 logicalStart=runs[i].logicalStart;
1307 evenRun=IS_EVEN_RUN(logicalStart);
1308 REMOVE_ODD_BIT(logicalStart);
1309 logicalEnd=logicalStart+length-1;
1311 m= evenRun ? logicalStart+j : logicalEnd-j;