Home
last modified time | relevance | path

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

12345

/external/icu/icu4c/source/test/intltest/
Dcompactdecimalformattest.cpp258 …UnicodeString subString = result.tempSubString(fp.getBeginIndex(), fp.getEndIndex() - fp.getBeginI… in TestFieldPosition()
318 if (actual != expected || pos.getEndIndex() != 3) { in TestAPIVariants()
320 … "Got: \"" + actual + "\", pos " + pos.getEndIndex()); in TestAPIVariants()
328 if (actual != expected || pos.getEndIndex() != 3 || status != U_ZERO_ERROR) { in TestAPIVariants()
330 … "Got: \"" + actual + "\", pos " + pos.getEndIndex() + ", status " + u_errorName(status)); in TestAPIVariants()
345 if (actual != expected || pos.getEndIndex() != 3) { in TestAPIVariants()
347 … "Got: \"" + actual + "\", pos " + pos.getEndIndex()); in TestAPIVariants()
355 if (actual != expected || pos.getEndIndex() != 3 || status != U_ZERO_ERROR) { in TestAPIVariants()
357 … "Got: \"" + actual + "\", pos " + pos.getEndIndex() + ", status " + u_errorName(status)); in TestAPIVariants()
372 if (actual != expected || pos.getEndIndex() != 3) { in TestAPIVariants()
[all …]
Dpptest.cpp207 int tempOffset = (tempLen <= (tempLen - pos.getEndIndex())) ? in TestFieldPosition_example()
208 tempLen : (tempLen - pos.getEndIndex()); in TestFieldPosition_example()
/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/icu4c/source/i18n/
Dscientificnumberformatter.cpp147 copyFromOffset = fp.getEndIndex(); in format()
153 int32_t endIndex = fp.getEndIndex(); in format()
182 fp.getEndIndex(), in format()
187 copyFromOffset = fp.getEndIndex(); in format()
221 copyFromOffset = fp.getEndIndex(); in format()
229 fp.getEndIndex() - copyFromOffset); in format()
230 copyFromOffset = fp.getEndIndex(); in format()
Ddtitvfmt.cpp402 if (pos.getEndIndex() == 0 && otherPos.getEndIndex() > 0) { in formatImpl()
1314 if (pos0.getEndIndex() > 0) { in adjustPosition()
1316 posResult.setEndIndex(pos0.getEndIndex() + index0); in adjustPosition()
1317 } else if (pos1.getEndIndex() > 0) { in adjustPosition()
1321 posResult.setEndIndex(pos1.getEndIndex() + index1); in adjustPosition()
1324 if (pos1.getEndIndex() > 0) { in adjustPosition()
1326 posResult.setEndIndex(pos1.getEndIndex() + index1); in adjustPosition()
1327 } else if (pos0.getEndIndex() > 0) { in adjustPosition()
1331 posResult.setEndIndex(pos0.getEndIndex() + index0); in adjustPosition()
Dmeasfmt.cpp777 if (fpos.getBeginIndex() != 0 || fpos.getEndIndex() != 0) { in formatMeasurePerUnit()
779 pos.setEndIndex(fpos.getEndIndex() + offset); in formatMeasurePerUnit()
1050 intFieldPosition.getEndIndex() == 0) { in formatNumeric()
1066 smallestFieldPosition.getEndIndex() != 0) { in formatNumeric()
1076 smallestFieldPosition.getEndIndex(), in formatNumeric()
1080 intFieldPosition.getEndIndex(), in formatNumeric()
1084 smallestFieldPosition.getEndIndex(), in formatNumeric()
1220 if (fpos.getBeginIndex() != 0 || fpos.getEndIndex() != 0) { in formatMeasuresSlowTrack()
1241 pos.setEndIndex(fpos.getEndIndex() + offset); in formatMeasuresSlowTrack()
/external/icu/android_icu4j/src/main/java/android/icu/text/
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.java781 if (pos.getEndIndex() == 0 && otherPos.getEndIndex() > 0) { in format()
783 pos.setEndIndex(otherPos.getEndIndex()); in format()
801 if (pos0.getEndIndex() > 0) { in adjustPosition()
803 posResult.setEndIndex(pos0.getEndIndex() + index0); in adjustPosition()
804 } else if (pos1.getEndIndex() > 0) { in adjustPosition()
808 posResult.setEndIndex(pos1.getEndIndex() + index1); in adjustPosition()
811 if (pos1.getEndIndex() > 0) { in adjustPosition()
813 posResult.setEndIndex(pos1.getEndIndex() + index1); in adjustPosition()
814 } else if (pos0.getEndIndex() > 0) { in adjustPosition()
818 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()
DMeasureFormat.java316 if (fpos.getBeginIndex() != 0 || fpos.getEndIndex() != 0) { in format()
318 pos.setEndIndex(fpos.getEndIndex() + prevLength); in format()
497 if (fpos.getBeginIndex() != 0 || fpos.getEndIndex() != 0) { in formatMeasurePerUnit()
499 pos.setEndIndex(fpos.getEndIndex() + offset); in formatMeasurePerUnit()
1176 if (fpos.getBeginIndex() != 0 || fpos.getEndIndex() != 0) { in formatMeasuresSlowTrack()
1189 fieldPosition.setEndIndex(fpos.getEndIndex() + builder.getOffset() + appendTo.length()); in formatMeasuresSlowTrack()
1311 if (intFieldPosition.getBeginIndex() == 0 && intFieldPosition.getEndIndex() == 0) { in formatNumeric()
1322 || smallestFieldPosition.getEndIndex() != 0) { in formatNumeric()
1334 smallestFieldPosition.getEndIndex()); in formatNumeric()
1339 intFieldPosition.getEndIndex(), in formatNumeric()
[all …]
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
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()
DMeasureFormat.java332 if (fpos.getBeginIndex() != 0 || fpos.getEndIndex() != 0) { in format()
334 pos.setEndIndex(fpos.getEndIndex() + prevLength); in format()
515 if (fpos.getBeginIndex() != 0 || fpos.getEndIndex() != 0) { in formatMeasurePerUnit()
517 pos.setEndIndex(fpos.getEndIndex() + offset); in formatMeasurePerUnit()
1204 if (fpos.getBeginIndex() != 0 || fpos.getEndIndex() != 0) { in formatMeasuresSlowTrack()
1217 fieldPosition.setEndIndex(fpos.getEndIndex() + builder.getOffset() + appendTo.length()); in formatMeasuresSlowTrack()
1339 if (intFieldPosition.getBeginIndex() == 0 && intFieldPosition.getEndIndex() == 0) { in formatNumeric()
1350 || smallestFieldPosition.getEndIndex() != 0) { in formatNumeric()
1362 smallestFieldPosition.getEndIndex()); in formatNumeric()
1367 intFieldPosition.getEndIndex(), in formatNumeric()
[all …]
/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/icu4j/main/tests/core/src/com/ibm/icu/dev/test/rbbi/
DBreakIteratorRegTest.java73 int len = sci.getEndIndex() - sci.getBeginIndex(); in TestRegUnreg()
97 int len = sci.getEndIndex() - sci.getBeginIndex(); in TestRegUnreg()
115 StringBuffer buf = new StringBuffer(ci.getEndIndex() - ci.getBeginIndex() + 2); in getString()
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/rbbi/
DBreakIteratorRegTest.java74 int len = sci.getEndIndex() - sci.getBeginIndex(); in TestRegUnreg()
98 int len = sci.getEndIndex() - sci.getBeginIndex(); in TestRegUnreg()
116 StringBuffer buf = new StringBuffer(ci.getEndIndex() - ci.getBeginIndex() + 2); in getString()
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/
DIntlTestDecimalFormatAPI.java288 if (fposByInt.getEndIndex() != fposByField.getEndIndex()) in testJB6134()
290 errln("ERROR: End index for integer field - fposByInt:" + fposByInt.getEndIndex() + in testJB6134()
291 " / fposByField: " + fposByField.getEndIndex()); in testJB6134()
/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/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()
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/iterator/
DTestUCharacterIterator.java442 if(ci.getEndIndex()!=wrap_ci.getEndIndex()){ in TestUCharacterIteratorWrapper()
443 …IteratorWrapper.getEndIndex() failed expected: " + ci.getEndIndex() + " got: " +wrap_ci.getEndInde… in TestUCharacterIteratorWrapper()
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/iterator/
DTestUCharacterIterator.java443 if(ci.getEndIndex()!=wrap_ci.getEndIndex()){ in TestUCharacterIteratorWrapper()
444 …IteratorWrapper.getEndIndex() failed expected: " + ci.getEndIndex() + " got: " +wrap_ci.getEndInde… in TestUCharacterIteratorWrapper()

12345