Home
last modified time | relevance | path

Searched refs:cfpos (Results 1 – 25 of 42) sorted by relevance

12

/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/
DFormattedValueTest.java30 ConstrainedFieldPosition cfpos = new ConstrainedFieldPosition(); in testBasic() local
33 cfpos, in testBasic()
44 ConstrainedFieldPosition cfpos = new ConstrainedFieldPosition(); in testSetters() local
46 cfpos.constrainField(NumberFormat.Field.COMPACT); in testSetters()
49 cfpos, in testSetters()
57 cfpos.constrainFieldAndValue(NumberFormat.Field.COMPACT, 42); in testSetters()
60 cfpos, in testSetters()
68 cfpos.constrainClass(NumberFormat.Field.class); in testSetters()
71 cfpos, in testSetters()
79 cfpos.setInt64IterationContext(42424242424242L); in testSetters()
[all …]
DDateIntervalFormatTest.java2131 ConstrainedFieldPosition cfpos = new ConstrainedFieldPosition(); in testFormattedDateInterval() local
2132 cfpos.constrainFieldAndValue(DateIntervalFormat.SpanField.DATE_INTERVAL_SPAN, 0); in testFormattedDateInterval()
2133 if (result.nextPosition(cfpos)) { in testFormattedDateInterval()
2134 assertEquals("Expect start index", 0, cfpos.getStart()); in testFormattedDateInterval()
2135 assertEquals("Expect end index", 7, cfpos.getLimit()); in testFormattedDateInterval()
2140 result.nextPosition(cfpos)); in testFormattedDateInterval()
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/format/
DFormattedValueTest.java33 ConstrainedFieldPosition cfpos = new ConstrainedFieldPosition(); in testBasic() local
36 cfpos, in testBasic()
47 ConstrainedFieldPosition cfpos = new ConstrainedFieldPosition(); in testSetters() local
49 cfpos.constrainField(NumberFormat.Field.COMPACT); in testSetters()
52 cfpos, in testSetters()
60 cfpos.constrainFieldAndValue(NumberFormat.Field.COMPACT, 42); in testSetters()
63 cfpos, in testSetters()
71 cfpos.constrainClass(NumberFormat.Field.class); in testSetters()
74 cfpos, in testSetters()
82 cfpos.setInt64IterationContext(42424242424242L); in testSetters()
[all …]
DDateIntervalFormatTest.java2134 ConstrainedFieldPosition cfpos = new ConstrainedFieldPosition(); in testFormattedDateInterval() local
2135 cfpos.constrainFieldAndValue(DateIntervalFormat.SpanField.DATE_INTERVAL_SPAN, 0); in testFormattedDateInterval()
2136 if (result.nextPosition(cfpos)) { in testFormattedDateInterval()
2137 assertEquals("Expect start index", 0, cfpos.getStart()); in testFormattedDateInterval()
2138 assertEquals("Expect end index", 7, cfpos.getLimit()); in testFormattedDateInterval()
2143 result.nextPosition(cfpos)); in testFormattedDateInterval()
/external/icu/icu4c/source/test/intltest/
Dformattedvaluetest.cpp27 const ConstrainedFieldPosition& cfpos,
50 ConstrainedFieldPosition cfpos; in testBasic() local
53 cfpos, in testBasic()
64 ConstrainedFieldPosition cfpos; in testSetters() local
66 cfpos.constrainCategory(UFIELD_CATEGORY_DATE); in testSetters()
69 cfpos, in testSetters()
77 cfpos.constrainField(UFIELD_CATEGORY_NUMBER, UNUM_COMPACT_FIELD); in testSetters()
80 cfpos, in testSetters()
88 cfpos.setInt64IterationContext(42424242424242LL); in testSetters()
91 cfpos, in testSetters()
[all …]
Ddtifmtts.cpp1909 ConstrainedFieldPosition cfpos; in testFormattedDateInterval() local
1910 cfpos.constrainField(UFIELD_CATEGORY_DATE_INTERVAL_SPAN, 0); in testFormattedDateInterval()
1911 if (result.nextPosition(cfpos, status)) { in testFormattedDateInterval()
1912 assertEquals("Expect start index", 0, cfpos.getStart()); in testFormattedDateInterval()
1913 assertEquals("Expect end index", 7, cfpos.getLimit()); in testFormattedDateInterval()
1918 result.nextPosition(cfpos, status)); in testFormattedDateInterval()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/
DFormattedValueStringBuilderImpl.java78 ConstrainedFieldPosition cfpos = new ConstrainedFieldPosition(); in nextFieldPosition() local
79 cfpos.constrainField(rawField); in nextFieldPosition()
80 cfpos.setState(rawField, null, fp.getBeginIndex(), fp.getEndIndex()); in nextFieldPosition()
81 if (nextPosition(self, cfpos, null)) { in nextFieldPosition()
82 fp.setBeginIndex(cfpos.getStart()); in nextFieldPosition()
83 fp.setEndIndex(cfpos.getLimit()); in nextFieldPosition()
106 ConstrainedFieldPosition cfpos = new ConstrainedFieldPosition(); in toCharacterIterator() local
108 while (nextPosition(self, cfpos, numericField)) { in toCharacterIterator()
110 Object value = cfpos.getFieldValue(); in toCharacterIterator()
112 value = cfpos.getField(); in toCharacterIterator()
[all …]
DFormattedValueFieldPositionIteratorImpl.java38 …ublic static boolean nextPosition(List<FieldPosition> attributes, ConstrainedFieldPosition cfpos) { in nextPosition() argument
40 int i = (int) cfpos.getInt64IterationContext(); in nextPosition()
49 if (cfpos.matchesField(field, value)) { in nextPosition()
52 cfpos.setState(field, value, start, limit); in nextPosition()
56 cfpos.setInt64IterationContext(i == numFields ? i : i + 1); in nextPosition()
/external/icu/android_icu4j/src/main/java/android/icu/impl/
DFormattedValueStringBuilderImpl.java81 ConstrainedFieldPosition cfpos = new ConstrainedFieldPosition(); in nextFieldPosition() local
82 cfpos.constrainField(rawField); in nextFieldPosition()
83 cfpos.setState(rawField, null, fp.getBeginIndex(), fp.getEndIndex()); in nextFieldPosition()
84 if (nextPosition(self, cfpos, null)) { in nextFieldPosition()
85 fp.setBeginIndex(cfpos.getStart()); in nextFieldPosition()
86 fp.setEndIndex(cfpos.getLimit()); in nextFieldPosition()
109 ConstrainedFieldPosition cfpos = new ConstrainedFieldPosition(); in toCharacterIterator() local
111 while (nextPosition(self, cfpos, numericField)) { in toCharacterIterator()
113 Object value = cfpos.getFieldValue(); in toCharacterIterator()
115 value = cfpos.getField(); in toCharacterIterator()
[all …]
DFormattedValueFieldPositionIteratorImpl.java40 …ublic static boolean nextPosition(List<FieldPosition> attributes, ConstrainedFieldPosition cfpos) { in nextPosition() argument
42 int i = (int) cfpos.getInt64IterationContext(); in nextPosition()
51 if (cfpos.matchesField(field, value)) { in nextPosition()
54 cfpos.setState(field, value, start, limit); in nextPosition()
58 cfpos.setInt64IterationContext(i == numFields ? i : i + 1); in nextPosition()
/external/icu/icu4c/source/i18n/
Dformattedval_sbimpl.cpp47 UBool FormattedValueStringBuilderImpl::nextPosition(ConstrainedFieldPosition& cfpos, UErrorCode& st… in nextPosition() argument
49 return nextPositionImpl(cfpos, fNumericField, status) ? true : false; in nextPosition()
64 ConstrainedFieldPosition cfpos; in nextFieldPosition() local
65 cfpos.constrainField(UFIELD_CATEGORY_NUMBER, rawField); in nextFieldPosition()
66 cfpos.setState(UFIELD_CATEGORY_NUMBER, rawField, fp.getBeginIndex(), fp.getEndIndex()); in nextFieldPosition()
67 if (nextPositionImpl(cfpos, kUndefinedField, status)) { in nextFieldPosition()
68 fp.setBeginIndex(cfpos.getStart()); in nextFieldPosition()
69 fp.setEndIndex(cfpos.getLimit()); in nextFieldPosition()
93 ConstrainedFieldPosition cfpos; in getAllFieldPositions() local
94 while (nextPositionImpl(cfpos, kUndefinedField, status)) { in getAllFieldPositions()
[all …]
Dformattedval_iterimpl.cpp46 ConstrainedFieldPosition& cfpos, in nextPosition() argument
50 int32_t i = static_cast<int32_t>(cfpos.getInt64IterationContext()); in nextPosition()
54 if (cfpos.matchesField(category, field)) { in nextPosition()
57 cfpos.setState(category, field, start, limit); in nextPosition()
61 cfpos.setInt64IterationContext(i == numFields ? i : i + 1); in nextPosition()
Dformattedval_impl.h89 UBool nextPosition(ConstrainedFieldPosition& cfpos, UErrorCode& status) const U_OVERRIDE;
159 UBool nextPosition(ConstrainedFieldPosition& cfpos, UErrorCode& status) const U_OVERRIDE;
185 …bool nextPositionImpl(ConstrainedFieldPosition& cfpos, FormattedStringBuilder::Field numericField,…
245 UBool Name::nextPosition(ConstrainedFieldPosition& cfpos, UErrorCode& status) const { \
247 return fData->nextPosition(cfpos, status); \
Dformattedvalue.cpp222 auto* cfpos = UConstrainedFieldPositionImpl::validate(ucfpos, *ec); in ufmtval_nextPosition() local
226 return fmtval->fFormattedValue->nextPosition(cfpos->fImpl, *ec); in ufmtval_nextPosition()
Dlistformatter.cpp662 ConstrainedFieldPosition cfpos; in format() local
663 cfpos.constrainField(UFIELD_CATEGORY_LIST_SPAN, index); in format()
664 result.nextPosition(cfpos, errorCode); in format()
665 offset = initialOffset + cfpos.getStart(); in format()
/external/icu/icu4c/source/test/cintltst/
Dcrelativedateformattest.c484 UConstrainedFieldPosition* cfpos = ucfpos_open(&status); in TestNumericField() local
487 … foundNumeric = ufmtval_nextPosition(ureldatefmt_resultAsValue(fv, &status), cfpos, &status); in TestNumericField()
491 if (ucfpos_getCategory(cfpos, &status) == UFIELD_CATEGORY_RELATIVE_DATETIME in TestNumericField()
492 && ucfpos_getField(cfpos, &status) == UDAT_REL_NUMERIC_FIELD) { in TestNumericField()
498 ucfpos_getIndexes(cfpos, &beginPos, &endPos, &status); in TestNumericField()
503 ucfpos_getField(cfpos, &status)); in TestNumericField()
515 ucfpos_close(cfpos); in TestNumericField()
539 UConstrainedFieldPosition* cfpos = ucfpos_open(&status); in TestNumericField() local
542 … foundNumeric = ufmtval_nextPosition(ureldatefmt_resultAsValue(fv, &status), cfpos, &status); in TestNumericField()
546 if (ucfpos_getCategory(cfpos, &status) == UFIELD_CATEGORY_RELATIVE_DATETIME in TestNumericField()
[all …]
/external/icu/libicu/cts_headers/
Dformattedval_impl.h89 UBool nextPosition(ConstrainedFieldPosition& cfpos, UErrorCode& status) const U_OVERRIDE;
159 UBool nextPosition(ConstrainedFieldPosition& cfpos, UErrorCode& status) const U_OVERRIDE;
185 …bool nextPositionImpl(ConstrainedFieldPosition& cfpos, FormattedStringBuilder::Field numericField,…
245 UBool Name::nextPosition(ConstrainedFieldPosition& cfpos, UErrorCode& status) const { \
247 return fData->nextPosition(cfpos, status); \
/external/icu/android_icu4j/src/main/java/android/icu/number/
DFormattedNumber.java81 public boolean nextPosition(ConstrainedFieldPosition cfpos) { in nextPosition() argument
82 return FormattedValueStringBuilderImpl.nextPosition(string, cfpos, null); in nextPosition()
DFormattedNumberRange.java93 public boolean nextPosition(ConstrainedFieldPosition cfpos) { in nextPosition() argument
94 return FormattedValueStringBuilderImpl.nextPosition(string, cfpos, null); in nextPosition()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/number/
DFormattedNumber.java93 public boolean nextPosition(ConstrainedFieldPosition cfpos) { in nextPosition() argument
94 return FormattedValueStringBuilderImpl.nextPosition(string, cfpos, null); in nextPosition()
DFormattedNumberRange.java105 public boolean nextPosition(ConstrainedFieldPosition cfpos) { in nextPosition() argument
106 return FormattedValueStringBuilderImpl.nextPosition(string, cfpos, null); in nextPosition()
/external/icu/android_icu4j/src/main/java/android/icu/text/
DFormattedValue.java58 public boolean nextPosition(ConstrainedFieldPosition cfpos); in nextPosition() argument
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
DFormattedValue.java61 public boolean nextPosition(ConstrainedFieldPosition cfpos); in nextPosition() argument
/external/icu/libicu/cts_headers/unicode/
Dformattedvalue.h309 virtual UBool nextPosition(ConstrainedFieldPosition& cfpos, UErrorCode& status) const = 0;
/external/icu/icu4c/source/i18n/unicode/
Dformattedvalue.h309 virtual UBool nextPosition(ConstrainedFieldPosition& cfpos, UErrorCode& status) const = 0;

12