/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/ |
D | BidiLine.java | 809 int visualIndex = Bidi.MAP_NOWHERE; in getVisualIndex() local 814 visualIndex = logicalIndex; in getVisualIndex() 817 visualIndex = bidi.length - logicalIndex - 1; in getVisualIndex() 831 visualIndex = visualStart + offset; in getVisualIndex() 834 visualIndex = visualStart + length - offset - 1; in getVisualIndex() 857 if (visualIndex < runs[i].limit) { in getVisualIndex() 858 return visualIndex + markFound; in getVisualIndex() 880 if (visualIndex >= runs[i].limit) { in getVisualIndex() 886 return visualIndex - controlFound; in getVisualIndex() 903 return visualIndex - controlFound; in getVisualIndex() [all …]
|
D | Bidi.java | 5035 public int getLogicalIndex(int visualIndex) in getLogicalIndex() argument 5038 verifyRange(visualIndex, 0, resultLength); in getLogicalIndex() 5042 return visualIndex; in getLogicalIndex() 5045 return length - visualIndex - 1; in getLogicalIndex() 5049 return BidiLine.getLogicalIndex(this, visualIndex); in getLogicalIndex()
|
/external/icu/android_icu4j/src/main/java/android/icu/text/ |
D | BidiLine.java | 810 int visualIndex = Bidi.MAP_NOWHERE; in getVisualIndex() local 815 visualIndex = logicalIndex; in getVisualIndex() 818 visualIndex = bidi.length - logicalIndex - 1; in getVisualIndex() 832 visualIndex = visualStart + offset; in getVisualIndex() 835 visualIndex = visualStart + length - offset - 1; in getVisualIndex() 858 if (visualIndex < runs[i].limit) { in getVisualIndex() 859 return visualIndex + markFound; in getVisualIndex() 881 if (visualIndex >= runs[i].limit) { in getVisualIndex() 887 return visualIndex - controlFound; in getVisualIndex() 904 return visualIndex - controlFound; in getVisualIndex() [all …]
|
D | Bidi.java | 4971 public int getLogicalIndex(int visualIndex) in getLogicalIndex() argument 4974 verifyRange(visualIndex, 0, resultLength); in getLogicalIndex() 4978 return visualIndex; in getLogicalIndex() 4981 return length - visualIndex - 1; in getLogicalIndex() 4985 return BidiLine.getLogicalIndex(this, visualIndex); in getLogicalIndex()
|
/external/icu/icu4c/source/common/ |
D | ubidiln.cpp | 878 int32_t visualIndex=UBIDI_MAP_NOWHERE; in ubidi_getVisualIndex() local 886 visualIndex=logicalIndex; in ubidi_getVisualIndex() 889 visualIndex=pBiDi->length-logicalIndex-1; in ubidi_getVisualIndex() 906 visualIndex=visualStart+offset; in ubidi_getVisualIndex() 909 visualIndex=visualStart+length-offset-1; in ubidi_getVisualIndex() 933 if(visualIndex<runs[i].visualLimit) { in ubidi_getVisualIndex() 934 return visualIndex+markFound; in ubidi_getVisualIndex() 956 if(visualIndex>=runs[i].visualLimit) { in ubidi_getVisualIndex() 962 return visualIndex-controlFound; in ubidi_getVisualIndex() 979 return visualIndex-controlFound; in ubidi_getVisualIndex() [all …]
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/bidi/ |
D | BiDiConformanceTest.java | 543 int i, visualIndex; in checkOrdering() local 546 for(i=visualIndex=0; i<resultLength; ++i) { in checkOrdering() 551 if(visualIndex<orderingCount && logicalIndex!=ordering[visualIndex]) { in checkOrdering() 552 … errln(" ------------ Wrong ordering value at visual index "+visualIndex+"; expected "+ in checkOrdering() 553 ordering[visualIndex]+" actual "+logicalIndex); in checkOrdering() 557 ++visualIndex; in checkOrdering() 561 if(isOk && orderingCount!=visualIndex) { in checkOrdering() 562 …n(" ------------ Wrong number of ordering values; expected "+orderingCount+" actual "+visualIndex); in checkOrdering()
|
D | TestBidi.java | 213 int runCount, visualIndex, logicalIndex = -1, logicalStart, runLength; in _testReordering() local 256 visualIndex = 0; in _testReordering() 272 visualMap4[visualIndex++] = logicalStart++; in _testReordering() 277 visualMap4[visualIndex++] = --logicalStart; in _testReordering() 343 visualIndex = bidi.getVisualIndex(i); in _testReordering() 348 if (logicalMap1[i] != visualIndex) { in _testReordering() 351 ") == " + visualIndex + ")"); in _testReordering()
|
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/bidi/ |
D | BiDiConformanceTest.java | 540 int i, visualIndex; in checkOrdering() local 543 for(i=visualIndex=0; i<resultLength; ++i) { in checkOrdering() 548 if(visualIndex<orderingCount && logicalIndex!=ordering[visualIndex]) { in checkOrdering() 549 … errln(" ------------ Wrong ordering value at visual index "+visualIndex+"; expected "+ in checkOrdering() 550 ordering[visualIndex]+" actual "+logicalIndex); in checkOrdering() 554 ++visualIndex; in checkOrdering() 558 if(isOk && orderingCount!=visualIndex) { in checkOrdering() 559 …n(" ------------ Wrong number of ordering values; expected "+orderingCount+" actual "+visualIndex); in checkOrdering()
|
D | TestBidi.java | 210 int runCount, visualIndex, logicalIndex = -1, logicalStart, runLength; in _testReordering() local 253 visualIndex = 0; in _testReordering() 269 visualMap4[visualIndex++] = logicalStart++; in _testReordering() 274 visualMap4[visualIndex++] = --logicalStart; in _testReordering() 340 visualIndex = bidi.getVisualIndex(i); in _testReordering() 345 if (logicalMap1[i] != visualIndex) { in _testReordering() 348 ") == " + visualIndex + ")"); in _testReordering()
|
/external/icu/icu4c/source/test/intltest/ |
D | bidiconf.cpp | 631 int32_t i, visualIndex; in checkOrdering() local 634 for(i=visualIndex=0; i<resultLength; ++i) { in checkOrdering() 643 if(visualIndex<orderingCount && logicalIndex!=ordering[visualIndex]) { in checkOrdering() 645 (int)lineNumber, (int)visualIndex, ordering[visualIndex], logicalIndex); in checkOrdering() 649 ++visualIndex; in checkOrdering() 653 if(isOk && orderingCount!=visualIndex) { in checkOrdering() 655 (int)lineNumber, (int)orderingCount, (int)visualIndex); in checkOrdering()
|
/external/icu/icu4c/source/common/unicode/ |
D | ubidi.h | 1673 ubidi_getLogicalIndex(UBiDi *pBiDi, int32_t visualIndex, UErrorCode *pErrorCode);
|
/external/icu/icu4c/source/test/cintltst/ |
D | cbiditst.c | 1153 int32_t runCount, visualIndex, logicalStart, runLength; in _testReordering() local 1195 visualIndex=0; in _testReordering() 1201 visualMap4[visualIndex++]=logicalStart++; in _testReordering() 1206 visualMap4[visualIndex++]=--logicalStart; in _testReordering()
|