Home
last modified time | relevance | path

Searched refs:getEndIndex (Results 1 – 25 of 134) sorted by relevance

123456

/external/icu/icu4c/source/test/intltest/
Dcompactdecimalformattest.cpp336 …UnicodeString subString = result.tempSubString(fp.getBeginIndex(), fp.getEndIndex() - fp.getBeginI… in TestFieldPosition()
396 if (actual != expected || pos.getEndIndex() != 3) { in TestAPIVariants()
398 … "Got: \"" + actual + "\", pos " + pos.getEndIndex()); in TestAPIVariants()
406 if (actual != expected || pos.getEndIndex() != 3 || status != U_ZERO_ERROR) { in TestAPIVariants()
408 … "Got: \"" + actual + "\", pos " + pos.getEndIndex() + ", status " + u_errorName(status)); in TestAPIVariants()
417 if (actual != expected || pos.getEndIndex() != 3 || status != U_ZERO_ERROR) { in TestAPIVariants()
419 "Got: \"" + actual + "\", pos " + pos.getEndIndex() + ", status " + u_errorName(status)); in TestAPIVariants()
426 if (actual != expected || pos.getEndIndex() != 3) { in TestAPIVariants()
428 … "Got: \"" + actual + "\", pos " + pos.getEndIndex()); in TestAPIVariants()
436 if (actual != expected || pos.getEndIndex() != 3 || status != U_ZERO_ERROR) { in TestAPIVariants()
[all …]
Dpptest.cpp207 int tempOffset = (tempLen <= (tempLen - pos.getEndIndex())) ? in TestFieldPosition_example()
208 tempLen : (tempLen - pos.getEndIndex()); in TestFieldPosition_example()
/external/icu/icu4c/source/i18n/
Dscientificnumberformatter.cpp146 copyFromOffset = fp.getEndIndex(); in format()
153 int32_t endIndex = fp.getEndIndex(); in format()
182 fp.getEndIndex(), in format()
187 copyFromOffset = fp.getEndIndex(); in format()
220 copyFromOffset = fp.getEndIndex(); in format()
228 fp.getEndIndex() - copyFromOffset); in format()
229 copyFromOffset = fp.getEndIndex(); in format()
Dmeasfmt.cpp786 if (fpos.getBeginIndex() != 0 || fpos.getEndIndex() != 0) { in formatMeasurePerUnit()
788 pos.setEndIndex(fpos.getEndIndex() + offset); in formatMeasurePerUnit()
1058 intFieldPosition.getEndIndex() == 0) { in formatNumeric()
1078 smallestFieldPosition.getEndIndex() != 0) { in formatNumeric()
1088 smallestFieldPosition.getEndIndex(), in formatNumeric()
1092 intFieldPosition.getEndIndex(), in formatNumeric()
1096 smallestFieldPosition.getEndIndex(), in formatNumeric()
1230 if (fpos.getBeginIndex() != 0 || fpos.getEndIndex() != 0) { in formatMeasuresSlowTrack()
1251 pos.setEndIndex(fpos.getEndIndex() + offset); in formatMeasuresSlowTrack()
Ddtitvfmt.cpp405 if (pos.getEndIndex() == 0 && otherPos.getEndIndex() > 0) { in formatImpl()
1315 if (pos0.getEndIndex() > 0) { in adjustPosition()
1317 posResult.setEndIndex(pos0.getEndIndex() + index0); in adjustPosition()
1318 } else if (pos1.getEndIndex() > 0) { in adjustPosition()
1322 posResult.setEndIndex(pos1.getEndIndex() + index1); in adjustPosition()
1325 if (pos1.getEndIndex() > 0) { in adjustPosition()
1327 posResult.setEndIndex(pos1.getEndIndex() + index1); in adjustPosition()
1328 } else if (pos0.getEndIndex() > 0) { in adjustPosition()
1332 posResult.setEndIndex(pos0.getEndIndex() + index0); in adjustPosition()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/
DCharacterIteratorWrapper.java50 return (iterator.getEndIndex() - iterator.getBeginIndex()); in getLength()
103 iterator.setIndex(iterator.getEndIndex()); in setToLimit()
111 int length =iterator.getEndIndex() - iterator.getBeginIndex(); in getText()
143 int length = iterator.getEndIndex() - iterator.getBeginIndex(); in moveIndex()
DCharacterIteration.java68 if (lead == CharacterIterator.DONE && ci.getIndex() >= ci.getEndIndex()) { in nextTrail32()
120 if (ci.getIndex() >= ci.getEndIndex()) { in current32()
/external/icu/android_icu4j/src/main/java/android/icu/impl/
DCharacterIteratorWrapper.java52 return (iterator.getEndIndex() - iterator.getBeginIndex()); in getLength()
105 iterator.setIndex(iterator.getEndIndex()); in setToLimit()
113 int length =iterator.getEndIndex() - iterator.getBeginIndex(); in getText()
145 int length = iterator.getEndIndex() - iterator.getBeginIndex(); in moveIndex()
DCharacterIteration.java72 if (lead == CharacterIterator.DONE && ci.getIndex() >= ci.getEndIndex()) { in nextTrail32()
124 if (ci.getIndex() >= ci.getEndIndex()) { in current32()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
DMeasureFormat.java328 if (prevLength > 0 && fpos.getEndIndex() != 0) { in format()
330 fpos.setEndIndex(fpos.getEndIndex() + prevLength); in format()
419 if (prevLength > 0 && fpos.getEndIndex() > 0) { in formatMeasures()
421 fpos.setEndIndex(fpos.getEndIndex() + prevLength); in formatMeasures()
806 if (fpos.getEndIndex() != 0) { in formatMeasuresSlowTrack()
818 fieldPosition.setEndIndex(fpos.getEndIndex() + builder.getOffset()); in formatMeasuresSlowTrack()
935 if (intFieldPosition.getBeginIndex() == 0 && intFieldPosition.getEndIndex() == 0) { in formatNumeric()
950 … if (smallestFieldPosition.getBeginIndex() != 0 || smallestFieldPosition.getEndIndex() != 0) { in formatNumeric()
961 smallestFieldPosition.getEndIndex()); in formatNumeric()
965 intFieldPosition.getEndIndex(), in formatNumeric()
[all …]
DQuantityFormatter.java118 pos.setEndIndex(fpos.getEndIndex()); in selectPlural()
129 if (pos.getBeginIndex() != 0 || pos.getEndIndex() != 0) { in format()
132 pos.setEndIndex(pos.getEndIndex() + offsets[0]); in format()
DDateIntervalFormat.java790 if (pos.getEndIndex() == 0 && otherPos.getEndIndex() > 0) { in format()
792 pos.setEndIndex(otherPos.getEndIndex()); in format()
810 if (pos0.getEndIndex() > 0) { in adjustPosition()
812 posResult.setEndIndex(pos0.getEndIndex() + index0); in adjustPosition()
813 } else if (pos1.getEndIndex() > 0) { in adjustPosition()
817 posResult.setEndIndex(pos1.getEndIndex() + index1); in adjustPosition()
820 if (pos1.getEndIndex() > 0) { in adjustPosition()
822 posResult.setEndIndex(pos1.getEndIndex() + index1); in adjustPosition()
823 } else if (pos0.getEndIndex() > 0) { in adjustPosition()
827 posResult.setEndIndex(pos0.getEndIndex() + index0); in adjustPosition()
/external/icu/android_icu4j/src/main/java/android/icu/text/
DMeasureFormat.java306 if (prevLength > 0 && fpos.getEndIndex() != 0) { in format()
308 fpos.setEndIndex(fpos.getEndIndex() + prevLength); in format()
393 if (prevLength > 0 && fpos.getEndIndex() > 0) { in formatMeasures()
395 fpos.setEndIndex(fpos.getEndIndex() + prevLength); in formatMeasures()
765 if (fpos.getEndIndex() != 0) { in formatMeasuresSlowTrack()
777 fieldPosition.setEndIndex(fpos.getEndIndex() + builder.getOffset()); in formatMeasuresSlowTrack()
894 if (intFieldPosition.getBeginIndex() == 0 && intFieldPosition.getEndIndex() == 0) { in formatNumeric()
909 … if (smallestFieldPosition.getBeginIndex() != 0 || smallestFieldPosition.getEndIndex() != 0) { in formatNumeric()
920 smallestFieldPosition.getEndIndex()); in formatNumeric()
924 intFieldPosition.getEndIndex(), in formatNumeric()
[all …]
DQuantityFormatter.java119 pos.setEndIndex(fpos.getEndIndex()); in selectPlural()
130 if (pos.getBeginIndex() != 0 || pos.getEndIndex() != 0) { in format()
133 pos.setEndIndex(pos.getEndIndex() + offsets[0]); in format()
DDateIntervalFormat.java782 if (pos.getEndIndex() == 0 && otherPos.getEndIndex() > 0) { in format()
784 pos.setEndIndex(otherPos.getEndIndex()); in format()
802 if (pos0.getEndIndex() > 0) { in adjustPosition()
804 posResult.setEndIndex(pos0.getEndIndex() + index0); in adjustPosition()
805 } else if (pos1.getEndIndex() > 0) { in adjustPosition()
809 posResult.setEndIndex(pos1.getEndIndex() + index1); in adjustPosition()
812 if (pos1.getEndIndex() > 0) { in adjustPosition()
814 posResult.setEndIndex(pos1.getEndIndex() + index1); in adjustPosition()
815 } else if (pos0.getEndIndex() > 0) { in adjustPosition()
819 posResult.setEndIndex(pos0.getEndIndex() + index0); in adjustPosition()
DSearchIterator.java153 return targetText.getEndIndex(); in endIndex()
244 if (text == null || text.getEndIndex() == text.getIndex()) { in setTarget()
611 || (target.getEndIndex() - target.getBeginIndex()) == 0) { in SearchIterator()
/external/icu/icu4j/eclipse-build/plugins.template/com.ibm.icu.base/src/com/ibm/icu/text/
DNumberFormat.java248 pos.setEndIndex(jdkPos.getEndIndex()); in format()
327 pos.setEndIndex(jdkPos.getEndIndex()); in format()
342 pos.setEndIndex(jdkPos.getEndIndex()); in format()
356 pos.setEndIndex(jdkPos.getEndIndex()); in format()
370 pos.setEndIndex(jdkPos.getEndIndex()); in format()
384 pos.setEndIndex(jdkPos.getEndIndex()); in format()
1312 jdkPos.setEndIndex(icuPos.getEndIndex()); in toJDKFieldPosition()
DMessageFormat.java908 pos.setEndIndex(jdkPos.getEndIndex()); in format()
1027 pos.setEndIndex(jdkPos.getEndIndex()); in format()
1083 while (idx < it.getEndIndex()) { in formatToCharacterIterator()
1427 jdkPos.setEndIndex(icuPos.getEndIndex()); in toJDKFieldPosition()
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/rbbi/
DBreakIteratorRegTest.java79 int len = sci.getEndIndex() - sci.getBeginIndex(); in TestRegUnreg()
103 int len = sci.getEndIndex() - sci.getBeginIndex(); in TestRegUnreg()
121 StringBuffer buf = new StringBuffer(ci.getEndIndex() - ci.getBeginIndex() + 2); in getString()
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/rbbi/
DBreakIteratorRegTest.java76 int len = sci.getEndIndex() - sci.getBeginIndex(); in TestRegUnreg()
100 int len = sci.getEndIndex() - sci.getBeginIndex(); in TestRegUnreg()
118 StringBuffer buf = new StringBuffer(ci.getEndIndex() - ci.getBeginIndex() + 2); in getString()
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/impl/
DCSCharacterIteratorTest.java37 assertEquals("", sci.getEndIndex(), csci.getEndIndex()); in TestAPI()
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/impl/
DCSCharacterIteratorTest.java34 assertEquals("", sci.getEndIndex(), csci.getEndIndex()); in TestAPI()
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/format/
DIntlTestDecimalFormatAPI.java286 if (fposByInt.getEndIndex() != fposByField.getEndIndex()) in testJB6134()
288 errln("ERROR: End index for integer field - fposByInt:" + fposByInt.getEndIndex() + in testJB6134()
289 " / fposByField: " + fposByField.getEndIndex()); in testJB6134()
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/
DIntlTestDecimalFormatAPI.java283 if (fposByInt.getEndIndex() != fposByField.getEndIndex()) in testJB6134()
285 errln("ERROR: End index for integer field - fposByInt:" + fposByInt.getEndIndex() + in testJB6134()
286 " / fposByField: " + fposByField.getEndIndex()); in testJB6134()
/external/icu/icu4j/main/classes/collate/src/com/ibm/icu/text/
DSearchIterator.java156 return targetText.getEndIndex(); in endIndex()
252 if (text == null || text.getEndIndex() == text.getIndex()) { in setTarget()
635 || (target.getEndIndex() - target.getBeginIndex()) == 0) { in SearchIterator()

123456