/third_party/icu/icu4c/source/test/intltest/ |
D | formattedvaluetest.cpp | 172 const UFieldPosition* expectedFieldPositions, in checkFormattedValue() argument 177 converted[i].field = expectedFieldPositions[i].field; in checkFormattedValue() 178 converted[i].beginIndex = expectedFieldPositions[i].beginIndex; in checkFormattedValue() 179 converted[i].endIndex = expectedFieldPositions[i].endIndex; in checkFormattedValue() 204 const UFieldPositionWithCategory* expectedFieldPositions, in checkMixedFormattedValue() argument 225 int32_t expectedCategory = expectedFieldPositions[i].category; in checkMixedFormattedValue() 226 int32_t expectedField = expectedFieldPositions[i].field; in checkMixedFormattedValue() 227 int32_t expectedStart = expectedFieldPositions[i].beginIndex; in checkMixedFormattedValue() 228 int32_t expectedLimit = expectedFieldPositions[i].endIndex; in checkMixedFormattedValue() 251 if (expectedFieldPositions[i].category != category) { in checkMixedFormattedValue() [all …]
|
D | reldatefmttest.cpp | 1423 static const UFieldPositionWithCategory expectedFieldPositions[] = { in TestFields() local 1429 expectedFieldPositions, in TestFields() 1430 UPRV_LENGTHOF(expectedFieldPositions)); in TestFields() 1436 static const UFieldPositionWithCategory expectedFieldPositions[] = { in TestFields() local 1445 expectedFieldPositions, in TestFields() 1446 UPRV_LENGTHOF(expectedFieldPositions)); in TestFields() 1452 static const UFieldPositionWithCategory expectedFieldPositions[] = { in TestFields() local 1458 expectedFieldPositions, in TestFields() 1459 UPRV_LENGTHOF(expectedFieldPositions)); in TestFields() 1465 static const UFieldPositionWithCategory expectedFieldPositions[] = { in TestFields() local [all …]
|
D | numbertest_api.cpp | 1459 static const UFieldPosition expectedFieldPositions[] = { in unitUsage() local 1465 expectedFieldPositions, in unitUsage() 1466 UPRV_LENGTHOF(expectedFieldPositions)); in unitUsage() 1495 static const UFieldPosition expectedFieldPositions[] = { in unitUsage() local 1501 expectedFieldPositions, in unitUsage() 1502 UPRV_LENGTHOF(expectedFieldPositions)); in unitUsage() 1531 static const UFieldPosition expectedFieldPositions[] = { in unitUsage() local 1538 expectedFieldPositions, in unitUsage() 1539 UPRV_LENGTHOF(expectedFieldPositions)); in unitUsage() 1569 static const UFieldPosition expectedFieldPositions[] = { in unitUsage() local [all …]
|
D | itformat.h | 47 const UFieldPosition* expectedFieldPositions, 55 const UFieldPositionWithCategory* expectedFieldPositions,
|
D | numbertest_patternstring.cpp | 137 static const UFieldPosition expectedFieldPositions[] = { in testCurrencyDecimal() local 146 expectedFieldPositions, in testCurrencyDecimal() 147 UPRV_LENGTHOF(expectedFieldPositions) in testCurrencyDecimal()
|
D | listformattertest.cpp | 514 static const UFieldPositionWithCategory expectedFieldPositions[] = { in TestFormattedValue() local 528 expectedFieldPositions, in TestFormattedValue() 529 UPRV_LENGTHOF(expectedFieldPositions)); in TestFormattedValue() 543 static const UFieldPositionWithCategory expectedFieldPositions[] = { in TestFormattedValue() local 555 expectedFieldPositions, in TestFormattedValue() 556 UPRV_LENGTHOF(expectedFieldPositions)); in TestFormattedValue() 576 static const UFieldPositionWithCategory expectedFieldPositions[] = { in TestFormattedValue() local 609 expectedFieldPositions, in TestFormattedValue() 610 UPRV_LENGTHOF(expectedFieldPositions)); in TestFormattedValue()
|
D | numbertest_range.cpp | 772 static const UFieldPositionWithCategory expectedFieldPositions[] = { in testFieldPositions() local 785 expectedFieldPositions, in testFieldPositions() 786 UPRV_LENGTHOF(expectedFieldPositions)); in testFieldPositions() 798 static const UFieldPositionWithCategory expectedFieldPositions[] = { in testFieldPositions() local 812 expectedFieldPositions, in testFieldPositions() 813 UPRV_LENGTHOF(expectedFieldPositions)); in testFieldPositions() 825 static const UFieldPositionWithCategory expectedFieldPositions[] = { in testFieldPositions() local 834 expectedFieldPositions, in testFieldPositions() 835 UPRV_LENGTHOF(expectedFieldPositions)); in testFieldPositions()
|
D | dtifmtts.cpp | 1886 static const UFieldPositionWithCategory expectedFieldPositions[] = { in testFormattedDateInterval() local 1898 expectedFieldPositions, in testFormattedDateInterval() 1899 UPRV_LENGTHOF(expectedFieldPositions)); in testFormattedDateInterval() 1908 static const UFieldPositionWithCategory expectedFieldPositions[] = { in testFormattedDateInterval() local 1917 expectedFieldPositions, in testFormattedDateInterval() 1918 UPRV_LENGTHOF(expectedFieldPositions)); in testFormattedDateInterval() 1962 static const UFieldPositionWithCategory expectedFieldPositions[] = { in testFormattedDateInterval() local 1976 expectedFieldPositions, in testFormattedDateInterval() 1977 UPRV_LENGTHOF(expectedFieldPositions)); in testFormattedDateInterval()
|
/third_party/icu/icu4c/source/test/cintltst/ |
D | cdateintervalformattest.c | 373 static const UFieldPositionWithCategory expectedFieldPositions[] = { in TestFormatToResult() local 391 expectedFieldPositions, in TestFormatToResult() 392 UPRV_LENGTHOF(expectedFieldPositions)); in TestFormatToResult() 399 static const UFieldPositionWithCategory expectedFieldPositions[] = { in TestFormatToResult() local 415 expectedFieldPositions, in TestFormatToResult() 416 UPRV_LENGTHOF(expectedFieldPositions)); in TestFormatToResult() 443 static const UFieldPositionWithCategory expectedFieldPositions[] = { in TestFormatCalendarToResult() local 461 expectedFieldPositions, in TestFormatCalendarToResult() 462 UPRV_LENGTHOF(expectedFieldPositions)); in TestFormatCalendarToResult() 469 static const UFieldPositionWithCategory expectedFieldPositions[] = { in TestFormatCalendarToResult() local [all …]
|
D | uformattedvaluetst.c | 214 const UFieldPosition* expectedFieldPositions, in checkFormattedValue() argument 228 expectedFieldPositions[i].field, ucfpos_getField(ucfpos, &ec)); in checkFormattedValue() 232 expectedFieldPositions[i].beginIndex, start); in checkFormattedValue() 234 expectedFieldPositions[i].endIndex, limit); in checkFormattedValue() 246 const UFieldPositionWithCategory* expectedFieldPositions, in checkMixedFormattedValue() argument 258 expectedFieldPositions[i].category, ucfpos_getCategory(ucfpos, &ec)); in checkMixedFormattedValue() 260 expectedFieldPositions[i].field, ucfpos_getField(ucfpos, &ec)); in checkMixedFormattedValue() 264 expectedFieldPositions[i].beginIndex, start); in checkMixedFormattedValue() 266 expectedFieldPositions[i].endIndex, limit); in checkMixedFormattedValue()
|
D | ulistfmttest.c | 154 static const UFieldPositionWithCategory expectedFieldPositions[] = { in TestUListFmtToValue() local 168 expectedFieldPositions, in TestUListFmtToValue() 169 UPRV_LENGTHOF(expectedFieldPositions)); in TestUListFmtToValue() 185 static const UFieldPositionWithCategory expectedFieldPositions[] = { in TestUListFmtToValue() local 211 expectedFieldPositions, in TestUListFmtToValue() 212 UPRV_LENGTHOF(expectedFieldPositions)); in TestUListFmtToValue() 235 static const UFieldPositionWithCategory expectedFieldPositions[] = { in TestUListOpenStyled() local 249 expectedFieldPositions, in TestUListOpenStyled() 250 UPRV_LENGTHOF(expectedFieldPositions)); in TestUListOpenStyled()
|
D | cformtst.h | 48 const UFieldPosition* expectedFieldPositions, 55 const UFieldPositionWithCategory* expectedFieldPositions,
|
D | unumberrangeformattertst.c | 100 static const UFieldPositionWithCategory expectedFieldPositions[] = { in TestFormattedValue() local 112 expectedFieldPositions, in TestFormattedValue() 113 UPRV_LENGTHOF(expectedFieldPositions)); in TestFormattedValue()
|
D | crelativedateformattest.c | 665 static const UFieldPositionWithCategory expectedFieldPositions[] = { in TestFields() local 674 expectedFieldPositions, in TestFields() 675 UPRV_LENGTHOF(expectedFieldPositions)); in TestFields() 683 static const UFieldPositionWithCategory expectedFieldPositions[] = { in TestFields() local 690 expectedFieldPositions, in TestFields() 691 UPRV_LENGTHOF(expectedFieldPositions)); in TestFields()
|
D | unumberformattertst.c | 227 static const UFieldPosition expectedFieldPositions[] = { in TestFormattedValue() local 238 expectedFieldPositions, in TestFormattedValue() 239 UPRV_LENGTHOF(expectedFieldPositions)); in TestFormattedValue()
|
/third_party/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/ |
D | FormattedValueTest.java | 150 Object[][] expectedFieldPositions) { in checkFormattedValue() argument 151 checkFormattedValue(message, fv, expectedString, expectedFieldPositions, false); in checkFormattedValue() 155 Object[][] expectedFieldPositions, boolean skipAttributedCharacterIterator) { in checkFormattedValue() argument 160 for (int i=0; i<expectedFieldPositions.length; i++) { in checkFormattedValue() 161 uniqueFields.add((Format.Field) expectedFieldPositions[i][0]); in checkFormattedValue() 162 uniqueFieldClasses.add(expectedFieldPositions[i][0].getClass()); in checkFormattedValue() 185 for (Object[] cas : expectedFieldPositions) { in checkFormattedValue() 215 for (Object[] cas : expectedFieldPositions) { in checkFormattedValue() 237 for (Object[] cas : expectedFieldPositions) { in checkFormattedValue() 268 for (Object[] cas : expectedFieldPositions) { in checkFormattedValue()
|
D | ListFormatterTest.java | 231 Object[][] expectedFieldPositions = new Object[][] { in TestFormattedValue() local 245 expectedFieldPositions); in TestFormattedValue() 258 Object[][] expectedFieldPositions = { in TestFormattedValue() local 270 expectedFieldPositions, in TestFormattedValue() 291 Object[][] expectedFieldPositions = { in TestFormattedValue() local 324 expectedFieldPositions); in TestFormattedValue()
|
D | RelativeDateTimeFormatterTest.java | 1049 Object[][] expectedFieldPositions = new Object[][]{ in TestFields() local 1051 … FormattedValueTest.checkFormattedValue(message, fv, expectedString, expectedFieldPositions); in TestFields() 1057 Object[][] expectedFieldPositions = new Object[][]{ in TestFields() local 1062 … FormattedValueTest.checkFormattedValue(message, fv, expectedString, expectedFieldPositions); in TestFields() 1068 Object[][] expectedFieldPositions = new Object[][]{ in TestFields() local 1070 … FormattedValueTest.checkFormattedValue(message, fv, expectedString, expectedFieldPositions); in TestFields() 1076 Object[][] expectedFieldPositions = new Object[][]{ in TestFields() local 1083 … FormattedValueTest.checkFormattedValue(message, fv, expectedString, expectedFieldPositions); in TestFields() 1089 Object[][] expectedFieldPositions = new Object[][]{ in TestFields() local 1093 … FormattedValueTest.checkFormattedValue(message, fv, expectedString, expectedFieldPositions); in TestFields() [all …]
|
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/format/ |
D | FormattedValueTest.java | 153 Object[][] expectedFieldPositions) { in checkFormattedValue() argument 158 for (int i=0; i<expectedFieldPositions.length; i++) { in checkFormattedValue() 159 uniqueFields.add((Format.Field) expectedFieldPositions[i][0]); in checkFormattedValue() 160 uniqueFieldClasses.add(expectedFieldPositions[i][0].getClass()); in checkFormattedValue() 177 for (Object[] cas : expectedFieldPositions) { in checkFormattedValue() 207 for (Object[] cas : expectedFieldPositions) { in checkFormattedValue() 227 for (Object[] cas : expectedFieldPositions) { in checkFormattedValue() 256 for (Object[] cas : expectedFieldPositions) { in checkFormattedValue()
|
D | RelativeDateTimeFormatterTest.java | 1052 Object[][] expectedFieldPositions = new Object[][]{ in TestFields() local 1054 … FormattedValueTest.checkFormattedValue(message, fv, expectedString, expectedFieldPositions); in TestFields() 1060 Object[][] expectedFieldPositions = new Object[][]{ in TestFields() local 1065 … FormattedValueTest.checkFormattedValue(message, fv, expectedString, expectedFieldPositions); in TestFields() 1071 Object[][] expectedFieldPositions = new Object[][]{ in TestFields() local 1073 … FormattedValueTest.checkFormattedValue(message, fv, expectedString, expectedFieldPositions); in TestFields() 1079 Object[][] expectedFieldPositions = new Object[][]{ in TestFields() local 1086 … FormattedValueTest.checkFormattedValue(message, fv, expectedString, expectedFieldPositions); in TestFields() 1092 Object[][] expectedFieldPositions = new Object[][]{ in TestFields() local 1096 … FormattedValueTest.checkFormattedValue(message, fv, expectedString, expectedFieldPositions); in TestFields() [all …]
|
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/number/ |
D | NumberFormatterApiTest.java | 2618 Object[][] expectedFieldPositions = new Object[][]{ in fieldPositionLogic() local 2627 assertNumberFieldPositions(message, fmtd, expectedFieldPositions); in fieldPositionLogic() 2634 Object[] cas = expectedFieldPositions[i++]; in fieldPositionLogic() 2673 Object[][] expectedFieldPositions = new Object[][] { in fieldPositionCoverage() local 2680 expectedFieldPositions); in fieldPositionCoverage() 2693 Object[][] expectedFieldPositions = new Object[][] { in fieldPositionCoverage() local 2700 expectedFieldPositions); in fieldPositionCoverage() 2713 Object[][] expectedFieldPositions = new Object[][] { in fieldPositionCoverage() local 2721 expectedFieldPositions); in fieldPositionCoverage() 2734 Object[][] expectedFieldPositions = new Object[][] { in fieldPositionCoverage() local [all …]
|
D | NumberRangeFormatterTest.java | 740 Object[][] expectedFieldPositions = new Object[][]{ in testFieldPositions() local 746 … FormattedValueTest.checkFormattedValue(message, fmtd, expectedString, expectedFieldPositions); in testFieldPositions() 758 Object[][] expectedFieldPositions = new Object[][]{ in testFieldPositions() local 765 … FormattedValueTest.checkFormattedValue(message, fmtd, expectedString, expectedFieldPositions); in testFieldPositions()
|
/third_party/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/number/ |
D | NumberFormatterApiTest.java | 1439 final Object[][] expectedFieldPositions = { in unitUsage() local 1447 expectedFieldPositions); in unitUsage() 1474 final Object[][] expectedFieldPositions = { in unitUsage() local 1480 expectedFieldPositions); in unitUsage() 1507 final Object[][] expectedFieldPositions = { in unitUsage() local 1514 expectedFieldPositions); in unitUsage() 1541 final Object[][] expectedFieldPositions = { in unitUsage() local 1560 expectedFieldPositions); in unitUsage() 5440 Object[][] expectedFieldPositions = new Object[][]{ in fieldPositionLogic() local 5449 assertNumberFieldPositions(message, fmtd, expectedFieldPositions); in fieldPositionLogic() [all …]
|
D | NumberRangeFormatterTest.java | 776 Object[][] expectedFieldPositions = new Object[][]{ in testFieldPositions() local 784 … FormattedValueTest.checkFormattedValue(message, fmtd, expectedString, expectedFieldPositions); in testFieldPositions() 796 Object[][] expectedFieldPositions = new Object[][]{ in testFieldPositions() local 805 … FormattedValueTest.checkFormattedValue(message, fmtd, expectedString, expectedFieldPositions); in testFieldPositions() 817 Object[][] expectedFieldPositions = new Object[][]{ in testFieldPositions() local 821 … FormattedValueTest.checkFormattedValue(message, fmtd, expectedString, expectedFieldPositions); in testFieldPositions()
|
D | PatternStringTest.java | 155 Object[][] expectedFieldPositions = new Object[][] { in testCurrencyDecimal() local 163 expectedFieldPositions in testCurrencyDecimal()
|