Home
last modified time | relevance | path

Searched refs:getBeginIndex (Results 1 – 25 of 100) sorted by relevance

1234

/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/
DCharacterIteratorWrapper.java50 return (iterator.getEndIndex() - iterator.getBeginIndex()); in getLength()
111 int length =iterator.getEndIndex() - iterator.getBeginIndex(); in getText()
143 int length = iterator.getEndIndex() - iterator.getBeginIndex(); in moveIndex()
DCharacterIteration.java86 if (ci.getIndex() <= ci.getBeginIndex()) { in previous32()
91 if (UTF16.isTrailSurrogate(trail) && ci.getIndex()>ci.getBeginIndex()) { in previous32()
/external/icu/android_icu4j/src/main/java/android/icu/impl/
DCharacterIteratorWrapper.java52 return (iterator.getEndIndex() - iterator.getBeginIndex()); in getLength()
113 int length =iterator.getEndIndex() - iterator.getBeginIndex(); in getText()
145 int length = iterator.getEndIndex() - iterator.getBeginIndex(); in moveIndex()
DCharacterIteration.java90 if (ci.getIndex() <= ci.getBeginIndex()) { in previous32()
95 if (UTF16.isTrailSurrogate(trail) && ci.getIndex()>ci.getBeginIndex()) { in previous32()
/external/icu/icu4c/source/i18n/
Dscientificnumberformatter.cpp146 fp.getBeginIndex() - copyFromOffset); in format()
152 int32_t beginIndex = fp.getBeginIndex(); in format()
178 fp.getBeginIndex() - copyFromOffset); in format()
181 fp.getBeginIndex(), in format()
220 fp.getBeginIndex() - copyFromOffset); in format()
Dfphdlimp.cpp58 if (delta != 0 && pos.getField() != FieldPosition::DONT_CARE && pos.getBeginIndex() != -1) { in shiftLast()
59 pos.setBeginIndex(delta + pos.getBeginIndex()); in shiftLast()
Dmeasfmt.cpp777 if (fpos.getBeginIndex() != 0 || fpos.getEndIndex() != 0) { in formatMeasurePerUnit()
778 pos.setBeginIndex(fpos.getBeginIndex() + offset); in formatMeasurePerUnit()
1049 intFieldPosition.getBeginIndex() == 0 && in formatNumeric()
1065 if (smallestFieldPosition.getBeginIndex() != 0 || in formatNumeric()
1067 appendRange(draft, 0, smallestFieldPosition.getBeginIndex(), appendTo); in formatNumeric()
1071 intFieldPosition.getBeginIndex(), in formatNumeric()
1075 smallestFieldPosition.getBeginIndex(), in formatNumeric()
1220 if (fpos.getBeginIndex() != 0 || fpos.getEndIndex() != 0) { in formatMeasuresSlowTrack()
1240 pos.setBeginIndex(fpos.getBeginIndex() + offset); in formatMeasuresSlowTrack()
Dquantityformatter.cpp189 if (pos.getBeginIndex() != 0 || pos.getEndIndex() != 0) { in format()
191 pos.setBeginIndex(pos.getBeginIndex() + offset); in format()
/external/icu/android_icu4j/src/main/java/android/icu/text/
DQuantityFormatter.java118 pos.setBeginIndex(fpos.getBeginIndex()); in selectPlural()
130 if (pos.getBeginIndex() != 0 || pos.getEndIndex() != 0) { in format()
132 pos.setBeginIndex(pos.getBeginIndex() + offsets[0]); in format()
DSearchIterator.java146 return targetText.getBeginIndex(); in beginIndex()
248 text.setIndex(text.getBeginIndex()); in setTarget()
611 || (target.getEndIndex() - target.getBeginIndex()) == 0) { in SearchIterator()
DRuleBasedBreakIterator.java616 if (fText == null || startPos == fText.getBeginIndex()) { in previous()
643 lastResult = fText.getBeginIndex(); in previous()
722 else if (offset < fText.getBeginIndex()) { in rulesFollowing()
782 if (offset == fText.getBeginIndex()) { in rulesFollowing()
836 else if (offset < fText.getBeginIndex()) { in rulesPreceding()
894 if (offset < text.getBeginIndex() || offset > text.getEndIndex()) { in checkOffset()
912 if (offset == fText.getBeginIndex()) { in isBoundary()
949 if (curr == BreakIterator.DONE || curr == fText.getBeginIndex()) { in makeRuleStatusValid()
DMeasureFormat.java316 if (fpos.getBeginIndex() != 0 || fpos.getEndIndex() != 0) { in format()
317 pos.setBeginIndex(fpos.getBeginIndex() + prevLength); in format()
497 if (fpos.getBeginIndex() != 0 || fpos.getEndIndex() != 0) { in formatMeasurePerUnit()
498 pos.setBeginIndex(fpos.getBeginIndex() + offset); in formatMeasurePerUnit()
1176 if (fpos.getBeginIndex() != 0 || fpos.getEndIndex() != 0) { in formatMeasuresSlowTrack()
1188 … fieldPosition.setBeginIndex(fpos.getBeginIndex() + builder.getOffset() + appendTo.length()); in formatMeasuresSlowTrack()
1311 if (intFieldPosition.getBeginIndex() == 0 && intFieldPosition.getEndIndex() == 0) { in formatNumeric()
1321 if (smallestFieldPosition.getBeginIndex() != 0 in formatNumeric()
1324 appendTo.append(draft, 0, smallestFieldPosition.getBeginIndex()); in formatNumeric()
1327 appendTo.append(smallestAmountFormatted, 0, intFieldPosition.getBeginIndex()); in formatNumeric()
[all …]
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
DQuantityFormatter.java117 pos.setBeginIndex(fpos.getBeginIndex()); in selectPlural()
129 if (pos.getBeginIndex() != 0 || pos.getEndIndex() != 0) { in format()
131 pos.setBeginIndex(pos.getBeginIndex() + offsets[0]); in format()
DRuleBasedBreakIterator.java627 if (fText == null || startPos == fText.getBeginIndex()) { in previous()
654 lastResult = fText.getBeginIndex(); in previous()
734 else if (offset < fText.getBeginIndex()) { in rulesFollowing()
794 if (offset == fText.getBeginIndex()) { in rulesFollowing()
849 else if (offset < fText.getBeginIndex()) { in rulesPreceding()
908 if (offset < text.getBeginIndex() || offset > text.getEndIndex()) { in checkOffset()
927 if (offset == fText.getBeginIndex()) { in isBoundary()
965 if (curr == BreakIterator.DONE || curr == fText.getBeginIndex()) { in makeRuleStatusValid()
DMeasureFormat.java332 if (fpos.getBeginIndex() != 0 || fpos.getEndIndex() != 0) { in format()
333 pos.setBeginIndex(fpos.getBeginIndex() + prevLength); in format()
515 if (fpos.getBeginIndex() != 0 || fpos.getEndIndex() != 0) { in formatMeasurePerUnit()
516 pos.setBeginIndex(fpos.getBeginIndex() + offset); in formatMeasurePerUnit()
1204 if (fpos.getBeginIndex() != 0 || fpos.getEndIndex() != 0) { in formatMeasuresSlowTrack()
1216 … fieldPosition.setBeginIndex(fpos.getBeginIndex() + builder.getOffset() + appendTo.length()); in formatMeasuresSlowTrack()
1339 if (intFieldPosition.getBeginIndex() == 0 && intFieldPosition.getEndIndex() == 0) { in formatNumeric()
1349 if (smallestFieldPosition.getBeginIndex() != 0 in formatNumeric()
1352 appendTo.append(draft, 0, smallestFieldPosition.getBeginIndex()); in formatNumeric()
1355 appendTo.append(smallestAmountFormatted, 0, intFieldPosition.getBeginIndex()); in formatNumeric()
[all …]
/external/icu/icu4j/eclipse-build/plugins.template/com.ibm.icu.base/src/com/ibm/icu/text/
DNumberFormat.java247 pos.setBeginIndex(jdkPos.getBeginIndex()); in format()
326 pos.setBeginIndex(jdkPos.getBeginIndex()); in format()
341 pos.setBeginIndex(jdkPos.getBeginIndex()); in format()
355 pos.setBeginIndex(jdkPos.getBeginIndex()); in format()
369 pos.setBeginIndex(jdkPos.getBeginIndex()); in format()
383 pos.setBeginIndex(jdkPos.getBeginIndex()); in format()
1311 jdkPos.setBeginIndex(icuPos.getBeginIndex()); in toJDKFieldPosition()
DMessageFormat.java907 pos.setBeginIndex(jdkPos.getBeginIndex()); in format()
1026 pos.setBeginIndex(jdkPos.getBeginIndex()); in format()
1426 jdkPos.setBeginIndex(icuPos.getBeginIndex()); 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/classes/collate/src/com/ibm/icu/text/
DSearchIterator.java149 return targetText.getBeginIndex(); in beginIndex()
256 text.setIndex(text.getBeginIndex()); in setTarget()
635 || (target.getEndIndex() - target.getBeginIndex()) == 0) { in SearchIterator()
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/iterator/
DTestUCharacterIterator.java440 if(ci.getBeginIndex()!=wrap_ci.getBeginIndex()){ in TestUCharacterIteratorWrapper()
441 …atorWrapper.getBeginIndex() failed expected: " + ci.getBeginIndex() + " got: " +wrap_ci.getBeginIn… in TestUCharacterIteratorWrapper()
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/iterator/
DTestUCharacterIterator.java439 if(ci.getBeginIndex()!=wrap_ci.getBeginIndex()){ in TestUCharacterIteratorWrapper()
440 …atorWrapper.getBeginIndex() failed expected: " + ci.getBeginIndex() + " got: " +wrap_ci.getBeginIn… in TestUCharacterIteratorWrapper()
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/normalizer/
DTestDeprecatedNormalizerAPI.java43 if(clone.getBeginIndex()!= norm.getBeginIndex()){ in TestNormalizerAPI()
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/normalizer/
DTestDeprecatedNormalizerAPI.java44 if(clone.getBeginIndex()!= norm.getBeginIndex()){ in TestNormalizerAPI()
/external/icu/icu4j/eclipse-build/plugins.template/com.ibm.icu.base.tests/src/com/ibm/icu/tests/
DNumberFormatTest.java40 assertEquals(0, fp.getBeginIndex()); in testFormatObjectStringBufferFieldPosition()
83 assertEquals(8, fp.getBeginIndex()); in testFormatDoubleStringBufferFieldPosition()
94 assertEquals(3, fp.getBeginIndex()); in testFormatLongStringBufferFieldPosition()

1234