Home
last modified time | relevance | path

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

12345

/external/icu/icu4c/source/test/intltest/
Dcompactdecimalformattest.cpp256 …UnicodeString subString = result.tempSubString(fp.getBeginIndex(), fp.getEndIndex() - fp.getBeginI… in TestFieldPosition()
316 if (actual != expected || pos.getEndIndex() != 3) { in TestAPIVariants()
318 … "Got: \"" + actual + "\", pos " + pos.getEndIndex()); in TestAPIVariants()
326 if (actual != expected || pos.getEndIndex() != 3 || status != U_ZERO_ERROR) { in TestAPIVariants()
328 … "Got: \"" + actual + "\", pos " + pos.getEndIndex() + ", status " + u_errorName(status)); in TestAPIVariants()
343 if (actual != expected || pos.getEndIndex() != 3) { in TestAPIVariants()
345 … "Got: \"" + actual + "\", pos " + pos.getEndIndex()); in TestAPIVariants()
353 if (actual != expected || pos.getEndIndex() != 3 || status != U_ZERO_ERROR) { in TestAPIVariants()
355 … "Got: \"" + actual + "\", pos " + pos.getEndIndex() + ", status " + u_errorName(status)); in TestAPIVariants()
370 if (actual != expected || pos.getEndIndex() != 3) { in TestAPIVariants()
[all …]
Dpptest.cpp205 int tempOffset = (tempLen <= (tempLen - pos.getEndIndex())) ? in TestFieldPosition_example()
206 tempLen : (tempLen - pos.getEndIndex()); in TestFieldPosition_example()
/external/icu/android_icu4j/src/main/java/android/icu/impl/
DCharacterIteratorWrapper.java48 return (iterator.getEndIndex() - iterator.getBeginIndex()); in getLength()
96 iterator.setIndex(iterator.getEndIndex()); in setToLimit()
103 int length =iterator.getEndIndex() - iterator.getBeginIndex(); in getText()
133 int length = iterator.getEndIndex() - iterator.getBeginIndex(); in moveIndex()
DCharacterIteration.java70 if (lead == CharacterIterator.DONE && ci.getIndex() >= ci.getEndIndex()) { in nextTrail32()
122 if (ci.getIndex() >= ci.getEndIndex()) { in current32()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/
DCharacterIteratorWrapper.java46 return (iterator.getEndIndex() - iterator.getBeginIndex()); in getLength()
94 iterator.setIndex(iterator.getEndIndex()); in setToLimit()
101 int length =iterator.getEndIndex() - iterator.getBeginIndex(); in getText()
131 int length = iterator.getEndIndex() - iterator.getBeginIndex(); in moveIndex()
DCharacterIteration.java66 if (lead == CharacterIterator.DONE && ci.getIndex() >= ci.getEndIndex()) { in nextTrail32()
118 if (ci.getIndex() >= ci.getEndIndex()) { in current32()
/external/icu/icu4c/source/i18n/
Dscientificnumberformatter.cpp145 copyFromOffset = fp.getEndIndex(); in format()
151 int32_t endIndex = fp.getEndIndex(); in format()
180 fp.getEndIndex(), in format()
185 copyFromOffset = fp.getEndIndex(); in format()
219 copyFromOffset = fp.getEndIndex(); in format()
227 fp.getEndIndex() - copyFromOffset); in format()
228 copyFromOffset = fp.getEndIndex(); in format()
Dmeasfmt.cpp739 if (fpos.getBeginIndex() != 0 || fpos.getEndIndex() != 0) { in formatMeasurePerUnit()
741 pos.setEndIndex(fpos.getEndIndex() + offset); in formatMeasurePerUnit()
994 intFieldPosition.getEndIndex() == 0) { in formatNumeric()
1010 smallestFieldPosition.getEndIndex() != 0) { in formatNumeric()
1020 smallestFieldPosition.getEndIndex(), in formatNumeric()
1024 intFieldPosition.getEndIndex(), in formatNumeric()
1028 smallestFieldPosition.getEndIndex(), in formatNumeric()
1164 if (fpos.getBeginIndex() != 0 || fpos.getEndIndex() != 0) { in formatMeasuresSlowTrack()
1185 pos.setEndIndex(fpos.getEndIndex() + offset); in formatMeasuresSlowTrack()
Ddtitvfmt.cpp397 if (pos.getEndIndex() == 0 && otherPos.getEndIndex() > 0) { in format()
1329 if (pos0.getEndIndex() > 0) { in adjustPosition()
1331 posResult.setEndIndex(pos0.getEndIndex() + index0); in adjustPosition()
1332 } else if (pos1.getEndIndex() > 0) { in adjustPosition()
1336 posResult.setEndIndex(pos1.getEndIndex() + index1); in adjustPosition()
1339 if (pos1.getEndIndex() > 0) { in adjustPosition()
1341 posResult.setEndIndex(pos1.getEndIndex() + index1); in adjustPosition()
1342 } else if (pos0.getEndIndex() > 0) { in adjustPosition()
1346 posResult.setEndIndex(pos0.getEndIndex() + index0); in adjustPosition()
/external/icu/android_icu4j/src/main/java/android/icu/text/
DQuantityFormatter.java117 pos.setEndIndex(fpos.getEndIndex()); in selectPlural()
128 if (pos.getBeginIndex() != 0 || pos.getEndIndex() != 0) { in format()
131 pos.setEndIndex(pos.getEndIndex() + offsets[0]); in format()
DDateIntervalFormat.java767 if (pos.getEndIndex() == 0 && otherPos.getEndIndex() > 0) { in format()
786 if (pos0.getEndIndex() > 0) { in adjustPosition()
788 posResult.setEndIndex(pos0.getEndIndex() + index0); in adjustPosition()
789 } else if (pos1.getEndIndex() > 0) { in adjustPosition()
793 posResult.setEndIndex(pos1.getEndIndex() + index1); in adjustPosition()
796 if (pos1.getEndIndex() > 0) { in adjustPosition()
798 posResult.setEndIndex(pos1.getEndIndex() + index1); in adjustPosition()
799 } else if (pos0.getEndIndex() > 0) { in adjustPosition()
803 posResult.setEndIndex(pos0.getEndIndex() + index0); in adjustPosition()
DMeasureFormat.java314 if (fpos.getBeginIndex() != 0 || fpos.getEndIndex() != 0) { in format()
316 pos.setEndIndex(fpos.getEndIndex() + prevLength); in format()
495 if (fpos.getBeginIndex() != 0 || fpos.getEndIndex() != 0) { in formatMeasurePerUnit()
497 pos.setEndIndex(fpos.getEndIndex() + offset); in formatMeasurePerUnit()
1121 if (fpos.getBeginIndex() != 0 || fpos.getEndIndex() != 0) { in formatMeasuresSlowTrack()
1134 fieldPosition.setEndIndex(fpos.getEndIndex() + builder.getOffset() + appendTo.length()); in formatMeasuresSlowTrack()
1256 if (intFieldPosition.getBeginIndex() == 0 && intFieldPosition.getEndIndex() == 0) { in formatNumeric()
1267 || smallestFieldPosition.getEndIndex() != 0) { in formatNumeric()
1279 smallestFieldPosition.getEndIndex()); in formatNumeric()
1284 intFieldPosition.getEndIndex(), in formatNumeric()
[all …]
DSearchIterator.java151 return targetText.getEndIndex(); in endIndex()
242 if (text == null || text.getEndIndex() == text.getIndex()) { in setTarget()
609 || (target.getEndIndex() - target.getBeginIndex()) == 0) { in SearchIterator()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
DQuantityFormatter.java116 pos.setEndIndex(fpos.getEndIndex()); in selectPlural()
127 if (pos.getBeginIndex() != 0 || pos.getEndIndex() != 0) { in format()
130 pos.setEndIndex(pos.getEndIndex() + offsets[0]); in format()
DDateIntervalFormat.java775 if (pos.getEndIndex() == 0 && otherPos.getEndIndex() > 0) { in format()
794 if (pos0.getEndIndex() > 0) { in adjustPosition()
796 posResult.setEndIndex(pos0.getEndIndex() + index0); in adjustPosition()
797 } else if (pos1.getEndIndex() > 0) { in adjustPosition()
801 posResult.setEndIndex(pos1.getEndIndex() + index1); in adjustPosition()
804 if (pos1.getEndIndex() > 0) { in adjustPosition()
806 posResult.setEndIndex(pos1.getEndIndex() + index1); in adjustPosition()
807 } else if (pos0.getEndIndex() > 0) { in adjustPosition()
811 posResult.setEndIndex(pos0.getEndIndex() + index0); in adjustPosition()
DMeasureFormat.java330 if (fpos.getBeginIndex() != 0 || fpos.getEndIndex() != 0) { in format()
332 pos.setEndIndex(fpos.getEndIndex() + prevLength); in format()
513 if (fpos.getBeginIndex() != 0 || fpos.getEndIndex() != 0) { in formatMeasurePerUnit()
515 pos.setEndIndex(fpos.getEndIndex() + offset); in formatMeasurePerUnit()
1148 if (fpos.getBeginIndex() != 0 || fpos.getEndIndex() != 0) { in formatMeasuresSlowTrack()
1161 fieldPosition.setEndIndex(fpos.getEndIndex() + builder.getOffset() + appendTo.length()); in formatMeasuresSlowTrack()
1283 if (intFieldPosition.getBeginIndex() == 0 && intFieldPosition.getEndIndex() == 0) { in formatNumeric()
1294 || smallestFieldPosition.getEndIndex() != 0) { in formatNumeric()
1306 smallestFieldPosition.getEndIndex()); in formatNumeric()
1311 intFieldPosition.getEndIndex(), in formatNumeric()
[all …]
/external/icu/icu4j/eclipse-build/plugins.template/com.ibm.icu.base/src/com/ibm/icu/text/
DNumberFormat.java246 pos.setEndIndex(jdkPos.getEndIndex()); in format()
325 pos.setEndIndex(jdkPos.getEndIndex()); in format()
340 pos.setEndIndex(jdkPos.getEndIndex()); in format()
354 pos.setEndIndex(jdkPos.getEndIndex()); in format()
368 pos.setEndIndex(jdkPos.getEndIndex()); in format()
382 pos.setEndIndex(jdkPos.getEndIndex()); in format()
1310 jdkPos.setEndIndex(icuPos.getEndIndex()); in toJDKFieldPosition()
DMessageFormat.java906 pos.setEndIndex(jdkPos.getEndIndex()); in format()
1025 pos.setEndIndex(jdkPos.getEndIndex()); in format()
1081 while (idx < it.getEndIndex()) { in formatToCharacterIterator()
1425 jdkPos.setEndIndex(icuPos.getEndIndex()); in toJDKFieldPosition()
/external/icu/android_icu4j/src/main/tests/android/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/icu4j/main/tests/core/src/com/ibm/icu/dev/test/rbbi/
DBreakIteratorRegTest.java72 int len = sci.getEndIndex() - sci.getBeginIndex(); in TestRegUnreg()
96 int len = sci.getEndIndex() - sci.getBeginIndex(); in TestRegUnreg()
114 StringBuffer buf = new StringBuffer(ci.getEndIndex() - ci.getBeginIndex() + 2); in getString()
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/format/
DIntlTestDecimalFormatAPI.java289 if (fposByInt.getEndIndex() != fposByField.getEndIndex()) in testJB6134()
291 errln("ERROR: End index for integer field - fposByInt:" + fposByInt.getEndIndex() + in testJB6134()
292 " / fposByField: " + fposByField.getEndIndex()); in testJB6134()
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/
DIntlTestDecimalFormatAPI.java285 if (fposByInt.getEndIndex() != fposByField.getEndIndex()) in testJB6134()
287 errln("ERROR: End index for integer field - fposByInt:" + fposByInt.getEndIndex() + in testJB6134()
288 " / fposByField: " + fposByField.getEndIndex()); in testJB6134()
/external/icu/icu4j/main/classes/collate/src/com/ibm/icu/text/
DSearchIterator.java154 return targetText.getEndIndex(); in endIndex()
250 if (text == null || text.getEndIndex() == text.getIndex()) { in setTarget()
633 || (target.getEndIndex() - target.getBeginIndex()) == 0) { in SearchIterator()
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/iterator/
DTestUCharacterIterator.java446 if(ci.getEndIndex()!=wrap_ci.getEndIndex()){ in TestUCharacterIteratorWrapper()
447 …IteratorWrapper.getEndIndex() failed expected: " + ci.getEndIndex() + " got: " +wrap_ci.getEndInde… in TestUCharacterIteratorWrapper()
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/normalizer/
DTestDeprecatedNormalizerAPI.java66 if(clone.getEndIndex()!= norm.getEndIndex()){ in TestNormalizerAPI()

12345