/third_party/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 …]
|
/third_party/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 | 1933 ConstrainedFieldPosition cfpos; in testFormattedDateInterval() local 1934 cfpos.constrainField(UFIELD_CATEGORY_DATE_INTERVAL_SPAN, 0); in testFormattedDateInterval() 1935 if (result.nextPosition(cfpos, status)) { in testFormattedDateInterval() 1936 assertEquals("Expect start index", 0, cfpos.getStart()); in testFormattedDateInterval() 1937 assertEquals("Expect end index", 7, cfpos.getLimit()); in testFormattedDateInterval() 1942 result.nextPosition(cfpos, status)); in testFormattedDateInterval() 2175 ConstrainedFieldPosition cfpos; in getCategoryAndField() local 2176 while (formatted.nextPosition(cfpos, status)) { in getCategoryAndField() 2177 categories.push_back(cfpos.getCategory()); in getCategoryAndField() 2178 fields.push_back(cfpos.getField()); in getCategoryAndField() [all …]
|
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/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 …]
|
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/impl/ |
D | FormattedValueStringBuilderImpl.java | 81 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 …]
|
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()
|
/third_party/skia/third_party/externals/icu/source/i18n/ |
D | formattedval_sbimpl.cpp | 47 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 …]
|
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 | 89 UBool nextPosition(ConstrainedFieldPosition& cfpos, UErrorCode& status) const U_OVERRIDE; 161 UBool nextPosition(ConstrainedFieldPosition& cfpos, UErrorCode& status) const U_OVERRIDE; 190 …bool nextPositionImpl(ConstrainedFieldPosition& cfpos, FormattedStringBuilder::Field numericField,… 250 UBool Name::nextPosition(ConstrainedFieldPosition& cfpos, UErrorCode& status) const { \ 252 return fData->nextPosition(cfpos, status); \
|
/third_party/node/deps/icu-small/source/i18n/ |
D | formattedval_sbimpl.cpp | 47 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 …]
|
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 | 89 UBool nextPosition(ConstrainedFieldPosition& cfpos, UErrorCode& status) const override; 164 UBool nextPosition(ConstrainedFieldPosition& cfpos, UErrorCode& status) const override; 194 …bool nextPositionImpl(ConstrainedFieldPosition& cfpos, FormattedStringBuilder::Field numericField,… 254 UBool Name::nextPosition(ConstrainedFieldPosition& cfpos, UErrorCode& status) const { \ 256 return fData->nextPosition(cfpos, status); \
|
/third_party/icu/icu4c/source/i18n/ |
D | formattedval_sbimpl.cpp | 47 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 …]
|
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 | 89 UBool nextPosition(ConstrainedFieldPosition& cfpos, UErrorCode& status) const U_OVERRIDE; 161 UBool nextPosition(ConstrainedFieldPosition& cfpos, UErrorCode& status) const U_OVERRIDE; 191 …bool nextPositionImpl(ConstrainedFieldPosition& cfpos, FormattedStringBuilder::Field numericField,… 251 UBool Name::nextPosition(ConstrainedFieldPosition& cfpos, UErrorCode& status) const { \ 253 return fData->nextPosition(cfpos, status); \
|
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/ |
D | FormattedValueStringBuilderImpl.java | 107 ConstrainedFieldPosition cfpos = new ConstrainedFieldPosition(); in nextFieldPosition() local 108 cfpos.constrainField(rawField); in nextFieldPosition() 109 cfpos.setState(rawField, null, fp.getBeginIndex(), fp.getEndIndex()); in nextFieldPosition() 110 if (nextPosition(self, cfpos, null)) { in nextFieldPosition() 111 fp.setBeginIndex(cfpos.getStart()); in nextFieldPosition() 112 fp.setEndIndex(cfpos.getLimit()); in nextFieldPosition() 135 ConstrainedFieldPosition cfpos = new ConstrainedFieldPosition(); in toCharacterIterator() local 137 while (nextPosition(self, cfpos, numericField)) { in toCharacterIterator() 139 Object value = cfpos.getFieldValue(); in toCharacterIterator() 141 value = cfpos.getField(); in toCharacterIterator() [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()
|
/third_party/icu/docs/userguide/format_parse/ |
D | formatted_value.md | 54 ConstrainedFieldPosition cfpos; 55 cfpos.constrainField(UFIELD_CATEGORY_DATE_INTERVAL_SPAN, 0); 56 if (result.nextPosition(cfpos, status)) { 57 assertEquals("Expect start index", 0, cfpos.getStart()); 58 assertEquals("Expect end index", 7, cfpos.getLimit()); 63 result.nextPosition(cfpos, status)); 76 ConstrainedFieldPosition cfpos = new ConstrainedFieldPosition(); 77 cfpos.constrainFieldAndValue(DateIntervalFormat.SpanField.DATE_INTERVAL_SPAN, 0); 78 if (result.nextPosition(cfpos)) { 79 assertEquals("Expect start index", 0, cfpos.getStart()); [all …]
|
/third_party/icu/icu4c/source/test/cintltst/ |
D | crelativedateformattest.c | 486 UConstrainedFieldPosition* cfpos = ucfpos_open(&status); in TestNumericField() local 489 … foundNumeric = ufmtval_nextPosition(ureldatefmt_resultAsValue(fv, &status), cfpos, &status); in TestNumericField() 493 if (ucfpos_getCategory(cfpos, &status) == UFIELD_CATEGORY_RELATIVE_DATETIME in TestNumericField() 494 && ucfpos_getField(cfpos, &status) == UDAT_REL_NUMERIC_FIELD) { in TestNumericField() 500 ucfpos_getIndexes(cfpos, &beginPos, &endPos, &status); in TestNumericField() 505 ucfpos_getField(cfpos, &status)); in TestNumericField() 517 ucfpos_close(cfpos); in TestNumericField() 541 UConstrainedFieldPosition* cfpos = ucfpos_open(&status); in TestNumericField() local 544 … foundNumeric = ufmtval_nextPosition(ureldatefmt_resultAsValue(fv, &status), cfpos, &status); in TestNumericField() 548 if (ucfpos_getCategory(cfpos, &status) == UFIELD_CATEGORY_RELATIVE_DATETIME in TestNumericField() [all …]
|
/third_party/node/deps/v8/src/objects/ |
D | js-list-format.cc | 254 icu::ConstrainedFieldPosition cfpos; in FormattedListToJSArray() local 255 cfpos.constrainCategory(UFIELD_CATEGORY_LIST); in FormattedListToJSArray() 260 while (formatted.nextPosition(cfpos, status) && U_SUCCESS(status)) { in FormattedListToJSArray() 263 Intl::ToString(isolate, string, cfpos.getStart(), cfpos.getLimit()), in FormattedListToJSArray() 266 IcuFieldIdToType(isolate, cfpos.getField()), substring); in FormattedListToJSArray()
|
D | js-relative-time-format.cc | 435 icu::ConstrainedFieldPosition cfpos; in FormatToJSArray() local 436 cfpos.constrainCategory(UFIELD_CATEGORY_NUMBER); in FormatToJSArray() 442 while (formatted.nextPosition(cfpos, status) && U_SUCCESS(status)) { in FormatToJSArray() 443 int32_t category = cfpos.getCategory(); in FormatToJSArray() 444 int32_t field = cfpos.getField(); in FormatToJSArray() 445 int32_t start = cfpos.getStart(); in FormatToJSArray() 446 int32_t limit = cfpos.getLimit(); in FormatToJSArray()
|
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/number/ |
D | FormattedNumber.java | 78 public boolean nextPosition(ConstrainedFieldPosition cfpos) { in nextPosition() argument 79 return FormattedValueStringBuilderImpl.nextPosition(string, cfpos, null); in nextPosition()
|
D | FormattedNumberRange.java | 93 public boolean nextPosition(ConstrainedFieldPosition cfpos) { in nextPosition() argument 94 return FormattedValueStringBuilderImpl.nextPosition(string, cfpos, null); in nextPosition()
|
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/number/ |
D | FormattedNumber.java | 98 public boolean nextPosition(ConstrainedFieldPosition cfpos) { in nextPosition() argument 99 return FormattedValueStringBuilderImpl.nextPosition(string, cfpos, null); in nextPosition()
|
D | FormattedNumberRange.java | 105 public boolean nextPosition(ConstrainedFieldPosition cfpos) { in nextPosition() argument 106 return FormattedValueStringBuilderImpl.nextPosition(string, cfpos, null); in nextPosition()
|