Home
last modified time | relevance | path

Searched refs:charIdx (Results 1 – 8 of 8) sorted by relevance

/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/rbbi/
DRBBITestExtended.java117 int charIdx = 0; in TestExtended() local
127 for (charIdx = 0; charIdx < len; ) { in TestExtended()
128 int c = testString.codePointAt(charIdx); in TestExtended()
129 charIdx++; in TestExtended()
130 if (c == '\r' && charIdx<len && testString.charAt(charIdx) == '\n') { in TestExtended()
133 charIdx++; in TestExtended()
137 colStart = charIdx; in TestExtended()
139 column = charIdx - colStart + 1; in TestExtended()
158 if (testString.startsWith("<word>", charIdx-1)) { in TestExtended()
160 charIdx += 5; in TestExtended()
[all …]
DRBBIMonkeyTest.java696 … for (int charIdx = start; charIdx < end; charIdx=fString.offsetByCodePoints(charIdx, 1)) { in dump()
697 int c = fString.codePointAt(charIdx); in dump()
700 BreakRule rule = fBkRules.fBreakRules.get(fRuleForPosition[charIdx]); in dump()
702 if (f2ndRuleForPos[charIdx] > 0) { in dump()
703 secondRuleName = fBkRules.fBreakRules.get(f2ndRuleForPos[charIdx]).fName; in dump()
708 charIdx, c, cc.fName, in dump()
709 fExpectedBreaks[charIdx] ? '*' : '.', in dump()
710 fActualBreaks[charIdx] ? '*' : '.', in dump()
DRBBITestMonkey.java1890 int charIdx = m_rand() % classSet.size(); in RunMonkey() local
1891 int c = classSet.charAt(charIdx); in RunMonkey()
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/rbbi/
DRBBITestExtended.java114 int charIdx = 0; in TestExtended() local
124 for (charIdx = 0; charIdx < len; ) { in TestExtended()
125 int c = testString.codePointAt(charIdx); in TestExtended()
126 charIdx++; in TestExtended()
127 if (c == '\r' && charIdx<len && testString.charAt(charIdx) == '\n') { in TestExtended()
130 charIdx++; in TestExtended()
134 colStart = charIdx; in TestExtended()
136 column = charIdx - colStart + 1; in TestExtended()
155 if (testString.startsWith("<word>", charIdx-1)) { in TestExtended()
157 charIdx += 5; in TestExtended()
[all …]
DRBBIMonkeyTest.java693 … for (int charIdx = start; charIdx < end; charIdx=fString.offsetByCodePoints(charIdx, 1)) { in dump()
694 int c = fString.codePointAt(charIdx); in dump()
697 BreakRule rule = fBkRules.fBreakRules.get(fRuleForPosition[charIdx]); in dump()
699 if (f2ndRuleForPos[charIdx] > 0) { in dump()
700 secondRuleName = fBkRules.fBreakRules.get(f2ndRuleForPos[charIdx]).fName; in dump()
705 charIdx, c, cc.fName, in dump()
706 fExpectedBreaks[charIdx] ? '*' : '.', in dump()
707 fActualBreaks[charIdx] ? '*' : '.', in dump()
DRBBITestMonkey.java1887 int charIdx = m_rand() % classSet.size(); in RunMonkey() local
1888 int c = classSet.charAt(charIdx); in RunMonkey()
/external/icu/icu4c/source/test/intltest/
Drbbitst.cpp734 int32_t charIdx = 0; in TestExtended() local
741 for (charIdx = 0; charIdx < len; ) { in TestExtended()
743 UChar c = testString.charAt(charIdx); in TestExtended()
744 charIdx++; in TestExtended()
745 if (c == u'\r' && charIdx<len && testString.charAt(charIdx) == u'\n') { in TestExtended()
748 charIdx++; in TestExtended()
752 colStart = charIdx; in TestExtended()
754 column = charIdx - colStart + 1; in TestExtended()
773 if (testString.compare(charIdx-1, 6, u"<word>") == 0) { in TestExtended()
777 charIdx += 5; in TestExtended()
[all …]
Drbbimonkeytest.cpp581 for (int charIdx = start; charIdx < end; charIdx=fString.moveIndex32(charIdx, 1)) { in dump() local
583 UChar32 c = fString.char32At(charIdx); in dump()
588 …rule = static_cast<BreakRule *>(fBkRules->fBreakRules.elementAt(fRuleForPosition.charAt(charIdx))); in dump()
590 if (f2ndRuleForPos.charAt(charIdx) > 0) { in dump()
591 …ndRule = static_cast<BreakRule *>(fBkRules->fBreakRules.elementAt(f2ndRuleForPos.charAt(charIdx))); in dump()
598 charIdx, c, ccName.data(), in dump()
599 fExpectedBreaks.charAt(charIdx) ? '*' : '.', in dump()
600 fActualBreaks.charAt(charIdx) ? '*' : '.', in dump()