Lines Matching refs:visualIndex
43 * the ubidi_getLogical/VisualIndex() functions can compute the
876 int32_t visualIndex=UBIDI_MAP_NOWHERE;
884 visualIndex=logicalIndex;
887 visualIndex=pBiDi->length-logicalIndex-1;
904 visualIndex=visualStart+offset;
907 visualIndex=visualStart+length-offset-1;
931 if(visualIndex<runs[i].visualLimit) {
932 return visualIndex+markFound;
954 if(visualIndex>=runs[i].visualLimit) {
960 return visualIndex-controlFound;
977 return visualIndex-controlFound;
981 return visualIndex;
985 ubidi_getLogicalIndex(UBiDi *pBiDi, int32_t visualIndex, UErrorCode *pErrorCode) {
990 RETURN_IF_BAD_RANGE(visualIndex, 0, pBiDi->resultLength, *pErrorCode, -1);
994 return visualIndex;
997 return pBiDi->length-visualIndex-1;
1017 if(visualIndex<=(visualStart+markFound)) {
1023 if(visualIndex<(runs[i].visualLimit+markFound)) {
1024 visualIndex-=markFound;
1028 if(visualIndex==(visualStart+length+markFound)) {
1046 if(visualIndex>=(runs[i].visualLimit-controlFound+insertRemove)) {
1052 visualIndex+=controlFound;
1055 /* count non-control chars until visualIndex */
1066 if((visualIndex+controlFound)==(visualStart+j)) {
1070 visualIndex+=controlFound;
1077 for(i=0; visualIndex>=runs[i].visualLimit; ++i) {}
1085 if(visualIndex>=runs[i].visualLimit) {
1087 } else if(i==0 || visualIndex>=runs[i-1].visualLimit) {
1098 /* the offset in runs[i] is visualIndex-runs[i-1].visualLimit */
1100 visualIndex-=runs[i-1].visualLimit;
1102 return start+visualIndex;
1105 return GET_INDEX(start)+runs[i].visualLimit-visualIndex-1;