/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/bidi/ |
D | TestBidi.java | 102 int i, len = bidi.getLength(), logicalIndex = -1, runCount = 0; in doTest() local 154 logicalIndex = bidi.getVisualIndex(i); in doTest() 159 if(visualMap[i] != logicalIndex) { in doTest() 162 visualMap[i], logicalIndex); in doTest() 176 for (logicalIndex = 0; logicalIndex < len; ) { in doTest() 177 level = bidi.getLevelAt(logicalIndex); in doTest() 178 run = bidi.getLogicalRun(logicalIndex); in doTest() 179 logicalIndex = run.getLimit(); in doTest() 210 int runCount, visualIndex, logicalIndex = -1, logicalStart, runLength; in _testReordering() local 351 logicalIndex = bidi.getLogicalIndex(i); in _testReordering() [all …]
|
D | BiDiConformanceTest.java | 544 int logicalIndex=ubidi.getLogicalIndex(i); in checkOrdering() local 545 if(levels[logicalIndex]<0) { in checkOrdering() 548 if(visualIndex<orderingCount && logicalIndex!=ordering[visualIndex]) { in checkOrdering() 550 ordering[visualIndex]+" actual "+logicalIndex); in checkOrdering() 570 int logicalIndex=ubidi.getLogicalIndex(i); in checkOrdering() local 571 if(levels[logicalIndex]<Bidi.LEVEL_DEFAULT_LTR) { in checkOrdering() 572 aord.append(' ').append((char)('0'+logicalIndex)); in checkOrdering()
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/bidi/ |
D | TestBidi.java | 105 int i, len = bidi.getLength(), logicalIndex = -1, runCount = 0; in doTest() local 157 logicalIndex = bidi.getVisualIndex(i); in doTest() 162 if(visualMap[i] != logicalIndex) { in doTest() 165 visualMap[i], logicalIndex); in doTest() 179 for (logicalIndex = 0; logicalIndex < len; ) { in doTest() 180 level = bidi.getLevelAt(logicalIndex); in doTest() 181 run = bidi.getLogicalRun(logicalIndex); in doTest() 182 logicalIndex = run.getLimit(); in doTest() 213 int runCount, visualIndex, logicalIndex = -1, logicalStart, runLength; in _testReordering() local 354 logicalIndex = bidi.getLogicalIndex(i); in _testReordering() [all …]
|
D | BiDiConformanceTest.java | 547 int logicalIndex=ubidi.getLogicalIndex(i); in checkOrdering() local 548 if(levels[logicalIndex]<0) { in checkOrdering() 551 if(visualIndex<orderingCount && logicalIndex!=ordering[visualIndex]) { in checkOrdering() 553 ordering[visualIndex]+" actual "+logicalIndex); in checkOrdering() 573 int logicalIndex=ubidi.getLogicalIndex(i); in checkOrdering() local 574 if(levels[logicalIndex]<Bidi.LEVEL_DEFAULT_LTR) { in checkOrdering() 575 aord.append(' ').append((char)('0'+logicalIndex)); in checkOrdering()
|
/external/icu/icu4c/source/test/intltest/ |
D | bidiconf.cpp | 635 int32_t logicalIndex=ubidi_getLogicalIndex(ubidi, i, errorCode); in checkOrdering() local 640 if(levels[logicalIndex]>=UBIDI_DEFAULT_LTR) { in checkOrdering() 643 if(visualIndex<orderingCount && logicalIndex!=ordering[visualIndex]) { in checkOrdering() 645 (int)lineNumber, (int)visualIndex, ordering[visualIndex], logicalIndex); in checkOrdering() 666 int32_t logicalIndex=ubidi_getLogicalIndex(ubidi, i, errorCode); in checkOrdering() local 667 if(levels[logicalIndex]<UBIDI_DEFAULT_LTR) { in checkOrdering() 668 aord.append((UChar)0x20).append((UChar)(0x30+logicalIndex)); in checkOrdering()
|
/external/icu/android_icu4j/src/main/java/android/icu/text/ |
D | BidiLine.java | 450 static int getRunFromLogicalIndex(Bidi bidi, int logicalIndex) { in getRunFromLogicalIndex() argument 457 if ((logicalIndex >= logicalStart) && (logicalIndex < (logicalStart+length))) { in getRunFromLogicalIndex() 808 static int getVisualIndex(Bidi bidi, int logicalIndex) in getVisualIndex() argument 815 visualIndex = logicalIndex; in getVisualIndex() 818 visualIndex = bidi.length - logicalIndex - 1; in getVisualIndex() 828 offset = logicalIndex - runs[i].start; in getVisualIndex() 871 char uchar = bidi.text[logicalIndex]; in getVisualIndex() 892 limit = logicalIndex; in getVisualIndex() 895 start = logicalIndex + 1; in getVisualIndex()
|
D | Bidi.java | 4934 public int getVisualIndex(int logicalIndex) in getVisualIndex() argument 4937 verifyRange(logicalIndex, 0, length); in getVisualIndex() 4938 return BidiLine.getVisualIndex(this, logicalIndex); in getVisualIndex()
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/ |
D | BidiLine.java | 449 static int getRunFromLogicalIndex(Bidi bidi, int logicalIndex) { in getRunFromLogicalIndex() argument 456 if ((logicalIndex >= logicalStart) && (logicalIndex < (logicalStart+length))) { in getRunFromLogicalIndex() 807 static int getVisualIndex(Bidi bidi, int logicalIndex) in getVisualIndex() argument 814 visualIndex = logicalIndex; in getVisualIndex() 817 visualIndex = bidi.length - logicalIndex - 1; in getVisualIndex() 827 offset = logicalIndex - runs[i].start; in getVisualIndex() 870 char uchar = bidi.text[logicalIndex]; in getVisualIndex() 891 limit = logicalIndex; in getVisualIndex() 894 start = logicalIndex + 1; in getVisualIndex()
|
D | Bidi.java | 4997 public int getVisualIndex(int logicalIndex) in getVisualIndex() argument 5000 verifyRange(logicalIndex, 0, length); in getVisualIndex() 5001 return BidiLine.getVisualIndex(this, logicalIndex); in getVisualIndex()
|
/external/icu/icu4c/source/common/ |
D | ubidiln.cpp | 520 static int32_t getRunFromLogicalIndex(UBiDi *pBiDi, int32_t logicalIndex, UErrorCode *pErrorCode) { in getRunFromLogicalIndex() argument 527 if((logicalIndex>=logicalStart) && (logicalIndex<(logicalStart+length))) { in getRunFromLogicalIndex() 877 ubidi_getVisualIndex(UBiDi *pBiDi, int32_t logicalIndex, UErrorCode *pErrorCode) { in ubidi_getVisualIndex() argument 881 RETURN_IF_BAD_RANGE(logicalIndex, 0, pBiDi->length, *pErrorCode, -1); in ubidi_getVisualIndex() 886 visualIndex=logicalIndex; in ubidi_getVisualIndex() 889 visualIndex=pBiDi->length-logicalIndex-1; in ubidi_getVisualIndex() 902 offset=logicalIndex-GET_INDEX(runs[i].logicalStart); in ubidi_getVisualIndex() 946 UChar uchar=pBiDi->text[logicalIndex]; in ubidi_getVisualIndex() 967 limit=logicalIndex; in ubidi_getVisualIndex() 970 start=logicalIndex+1; in ubidi_getVisualIndex()
|
/external/skqp/modules/skshaper/src/ |
D | SkShaper_harfbuzz.cpp | 781 int logicalIndex = previousBreak.fRunIndex + logicalFromVisual[i]; in shape() local 783 int startGlyphIndex = (logicalIndex == previousBreak.fRunIndex) in shape() 786 int endGlyphIndex = (logicalIndex == runIndex) in shape() 788 : runs[logicalIndex].fNumGlyphs; in shape() 790 const auto& run = runs[logicalIndex]; in shape()
|
/external/skia/modules/skshaper/src/ |
D | SkShaper_harfbuzz.cpp | 736 int logicalIndex = logicalFromVisual[i]; in emit() local 738 const auto& run = line.runs[logicalIndex]; in emit() 1285 int logicalIndex = previousBreak.fRunIndex + logicalFromVisual[i]; in shapeOk() local 1287 int startGlyphIndex = (logicalIndex == previousBreak.fRunIndex) in shapeOk() 1290 int endGlyphIndex = (logicalIndex == runIndex) in shapeOk() 1292 : runs[logicalIndex].fNumGlyphs; in shapeOk() 1294 const auto& run = runs[logicalIndex]; in shapeOk()
|
/external/icu/libandroidicu/include/unicode/ |
D | ubidi.h | 1644 ubidi_getVisualIndex(UBiDi *pBiDi, int32_t logicalIndex, UErrorCode *pErrorCode);
|
/external/icu/icu4c/source/common/unicode/ |
D | ubidi.h | 1644 ubidi_getVisualIndex(UBiDi *pBiDi, int32_t logicalIndex, UErrorCode *pErrorCode);
|
/external/icu/icu4c/source/test/cintltst/ |
D | cbiditst.c | 1044 int32_t i, len=ubidi_getLength(pBiDi), logicalIndex, runCount = 0; in doTest() local 1103 logicalIndex=ubidi_getVisualIndex(pBiDi, i, &errorCode); in doTest() 1108 if(visualMap[i]!=logicalIndex) { in doTest() 1109 … log_err("ubidi_getVisualIndex(tests[%d], %d): wrong index %d\n", testNumber, i, logicalIndex); in doTest() 1122 for(logicalIndex=0; logicalIndex<len;) { in doTest() 1123 level=ubidi_getLevelAt(pBiDi, logicalIndex); in doTest() 1124 ubidi_getLogicalRun(pBiDi, logicalIndex, &logicalIndex, &level2); in doTest() 1128 testNumber, logicalIndex, level, level2); in doTest()
|
/external/icu/libandroidicu/static_shim/ |
D | shim.cpp | 592 int32_t ubidi_getVisualIndex_android(UBiDi * pBiDi, int32_t logicalIndex, UErrorCode * pErrorCode) { in ubidi_getVisualIndex_android() argument 593 return ubidi_getVisualIndex(pBiDi, logicalIndex, pErrorCode); in ubidi_getVisualIndex_android()
|