/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/ |
D | FormattedValueTest.java | 30 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 …]
|
D | DateIntervalFormatTest.java | 1975 ConstrainedFieldPosition cfpos = new ConstrainedFieldPosition(); in testFormattedDateInterval() local 1976 cfpos.constrainFieldAndValue(DateIntervalFormat.SpanField.DATE_INTERVAL_SPAN, 0); in testFormattedDateInterval() 1977 if (result.nextPosition(cfpos)) { in testFormattedDateInterval() 1978 assertEquals("Expect start index", 0, cfpos.getStart()); in testFormattedDateInterval() 1979 assertEquals("Expect end index", 7, cfpos.getLimit()); in testFormattedDateInterval() 1984 result.nextPosition(cfpos)); in testFormattedDateInterval()
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/format/ |
D | FormattedValueTest.java | 33 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 …]
|
D | DateIntervalFormatTest.java | 1978 ConstrainedFieldPosition cfpos = new ConstrainedFieldPosition(); in testFormattedDateInterval() local 1979 cfpos.constrainFieldAndValue(DateIntervalFormat.SpanField.DATE_INTERVAL_SPAN, 0); in testFormattedDateInterval() 1980 if (result.nextPosition(cfpos)) { in testFormattedDateInterval() 1981 assertEquals("Expect start index", 0, cfpos.getStart()); in testFormattedDateInterval() 1982 assertEquals("Expect end index", 7, cfpos.getLimit()); in testFormattedDateInterval() 1987 result.nextPosition(cfpos)); in testFormattedDateInterval()
|
/external/icu/icu4c/source/test/intltest/ |
D | formattedvaluetest.cpp | 27 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 …]
|
D | dtifmtts.cpp | 1733 ConstrainedFieldPosition cfpos; in testFormattedDateInterval() local 1734 cfpos.constrainField(UFIELD_CATEGORY_DATE_INTERVAL_SPAN, 0); in testFormattedDateInterval() 1735 if (result.nextPosition(cfpos, status)) { in testFormattedDateInterval() 1736 assertEquals("Expect start index", 0, cfpos.getStart()); in testFormattedDateInterval() 1737 assertEquals("Expect end index", 7, cfpos.getLimit()); in testFormattedDateInterval() 1742 result.nextPosition(cfpos, status)); in testFormattedDateInterval()
|
/external/icu/icu4c/source/i18n/ |
D | formattedval_sbimpl.cpp | 46 UBool FormattedValueStringBuilderImpl::nextPosition(ConstrainedFieldPosition& cfpos, UErrorCode& st… in nextPosition() argument 48 return nextPositionImpl(cfpos, fNumericField, status) ? TRUE : FALSE; in nextPosition() 63 ConstrainedFieldPosition cfpos; in nextFieldPosition() local 64 cfpos.constrainField(UFIELD_CATEGORY_NUMBER, rawField); in nextFieldPosition() 65 cfpos.setState(UFIELD_CATEGORY_NUMBER, rawField, fp.getBeginIndex(), fp.getEndIndex()); in nextFieldPosition() 66 if (nextPositionImpl(cfpos, 0, status)) { in nextFieldPosition() 67 fp.setBeginIndex(cfpos.getStart()); in nextFieldPosition() 68 fp.setEndIndex(cfpos.getLimit()); in nextFieldPosition() 92 ConstrainedFieldPosition cfpos; in getAllFieldPositions() local 93 while (nextPositionImpl(cfpos, 0, status)) { in getAllFieldPositions() [all …]
|
D | formattedval_iterimpl.cpp | 46 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()
|
D | formattedval_impl.h | 86 UBool nextPosition(ConstrainedFieldPosition& cfpos, UErrorCode& status) const U_OVERRIDE; 138 UBool nextPosition(ConstrainedFieldPosition& cfpos, UErrorCode& status) const U_OVERRIDE; 154 …bool nextPositionImpl(ConstrainedFieldPosition& cfpos, FormattedStringBuilder::Field numericField,… 214 UBool Name::nextPosition(ConstrainedFieldPosition& cfpos, UErrorCode& status) const { \ 216 return fData->nextPosition(cfpos, status); \
|
D | listformatter.cpp | 427 ConstrainedFieldPosition cfpos; in formatStringsToValue() local 428 cfpos.constrainField(UFIELD_CATEGORY_LIST, ULISTFMT_ELEMENT_FIELD); in formatStringsToValue() 431 while (result->nextPosition(cfpos, errorCode)) { in formatStringsToValue() 432 handler.addAttribute(i++, cfpos.getStart(), cfpos.getLimit()); in formatStringsToValue()
|
D | formattedvalue.cpp | 222 auto* cfpos = UConstrainedFieldPositionImpl::validate(ucfpos, *ec); in ufmtval_nextPosition() local 226 return fmtval->fFormattedValue->nextPosition(cfpos->fImpl, *ec); in ufmtval_nextPosition()
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/ |
D | FormattedValueStringBuilderImpl.java | 49 ConstrainedFieldPosition cfpos = new ConstrainedFieldPosition(); in nextFieldPosition() local 50 cfpos.constrainField(rawField); in nextFieldPosition() 51 cfpos.setState(rawField, null, fp.getBeginIndex(), fp.getEndIndex()); in nextFieldPosition() 52 if (nextPosition(self, cfpos, null)) { in nextFieldPosition() 53 fp.setBeginIndex(cfpos.getStart()); in nextFieldPosition() 54 fp.setEndIndex(cfpos.getLimit()); in nextFieldPosition() 77 ConstrainedFieldPosition cfpos = new ConstrainedFieldPosition(); in toCharacterIterator() local 79 while (nextPosition(self, cfpos, numericField)) { in toCharacterIterator() 81 as.addAttribute(cfpos.getField(), cfpos.getField(), cfpos.getStart(), cfpos.getLimit()); in toCharacterIterator() 103 …public static boolean nextPosition(FormattedStringBuilder self, ConstrainedFieldPosition cfpos, Fi… in nextPosition() argument [all …]
|
D | FormattedValueFieldPositionIteratorImpl.java | 38 …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/ |
D | FormattedValueStringBuilderImpl.java | 51 ConstrainedFieldPosition cfpos = new ConstrainedFieldPosition(); in nextFieldPosition() local 52 cfpos.constrainField(rawField); in nextFieldPosition() 53 cfpos.setState(rawField, null, fp.getBeginIndex(), fp.getEndIndex()); in nextFieldPosition() 54 if (nextPosition(self, cfpos, null)) { in nextFieldPosition() 55 fp.setBeginIndex(cfpos.getStart()); in nextFieldPosition() 56 fp.setEndIndex(cfpos.getLimit()); in nextFieldPosition() 79 ConstrainedFieldPosition cfpos = new ConstrainedFieldPosition(); in toCharacterIterator() local 81 while (nextPosition(self, cfpos, numericField)) { in toCharacterIterator() 83 as.addAttribute(cfpos.getField(), cfpos.getField(), cfpos.getStart(), cfpos.getLimit()); in toCharacterIterator() 105 …public static boolean nextPosition(FormattedStringBuilder self, ConstrainedFieldPosition cfpos, Fi… in nextPosition() argument [all …]
|
D | FormattedValueFieldPositionIteratorImpl.java | 40 …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/test/cintltst/ |
D | crelativedateformattest.c | 484 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/v8/src/objects/ |
D | js-list-format.cc | 267 icu::ConstrainedFieldPosition cfpos; in FormattedListToJSArray() local 268 cfpos.constrainCategory(UFIELD_CATEGORY_LIST); in FormattedListToJSArray() 273 while (formatted.nextPosition(cfpos, status) && U_SUCCESS(status)) { in FormattedListToJSArray() 276 Intl::ToString(isolate, string, cfpos.getStart(), cfpos.getLimit()), in FormattedListToJSArray() 279 IcuFieldIdToType(isolate, cfpos.getField()), substring); in FormattedListToJSArray()
|
D | js-relative-time-format.cc | 439 icu::ConstrainedFieldPosition cfpos; in FormatToJSArray() local 440 cfpos.constrainCategory(UFIELD_CATEGORY_NUMBER); in FormatToJSArray() 446 while (formatted.nextPosition(cfpos, status) && U_SUCCESS(status)) { in FormatToJSArray() 447 int32_t category = cfpos.getCategory(); in FormatToJSArray() 448 int32_t field = cfpos.getField(); in FormatToJSArray() 449 int32_t start = cfpos.getStart(); in FormatToJSArray() 450 int32_t limit = cfpos.getLimit(); in FormatToJSArray()
|
/external/icu/android_icu4j/src/main/java/android/icu/number/ |
D | FormattedNumber.java | 90 public boolean nextPosition(ConstrainedFieldPosition cfpos) { in nextPosition() argument 91 return FormattedValueStringBuilderImpl.nextPosition(string, cfpos, null); in nextPosition()
|
D | FormattedNumberRange.java | 103 public boolean nextPosition(ConstrainedFieldPosition cfpos) { in nextPosition() argument 104 return FormattedValueStringBuilderImpl.nextPosition(string, cfpos, null); in nextPosition()
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/number/ |
D | FormattedNumber.java | 96 public boolean nextPosition(ConstrainedFieldPosition cfpos) { in nextPosition() argument 97 return FormattedValueStringBuilderImpl.nextPosition(string, cfpos, null); in nextPosition()
|
D | FormattedNumberRange.java | 109 public boolean nextPosition(ConstrainedFieldPosition cfpos) { in nextPosition() argument 110 return FormattedValueStringBuilderImpl.nextPosition(string, cfpos, null); in nextPosition()
|
/external/icu/android_icu4j/src/main/java/android/icu/text/ |
D | FormattedValue.java | 63 public boolean nextPosition(ConstrainedFieldPosition cfpos); in nextPosition() argument
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/ |
D | FormattedValue.java | 65 public boolean nextPosition(ConstrainedFieldPosition cfpos); in nextPosition() argument
|
/external/icu/icu4c/source/i18n/unicode/ |
D | formattedvalue.h | 322 virtual UBool nextPosition(ConstrainedFieldPosition& cfpos, UErrorCode& status) const = 0;
|