/external/icu/icu4c/source/test/intltest/ |
D | numfmtst.h | 349 void expectPad(DecimalFormat& fmt, const UnicodeString& pat, 352 void expectPad(DecimalFormat& fmt, const char *pat, in expectPad() function 354 expectPad(fmt, UnicodeString(pat, ""), pos, width, pad); in expectPad() 357 void expectPad(DecimalFormat& fmt, const UnicodeString& pat, 360 void expectPad(DecimalFormat& fmt, const char *pat, in expectPad() function 362 expectPad(fmt, UnicodeString(pat, ""), pos, width, pad); in expectPad() 371 void expectPad(DecimalFormat& fmt, const UnicodeString& pat, 374 void expectPad(DecimalFormat& fmt, const char *pat, in expectPad() function 376 expectPad(fmt, pat, pos, 0, (UChar)0); in expectPad()
|
D | numfmtst.cpp | 1710 expectPad(fmt, "*P##.##", DecimalFormat::kPadBeforePrefix, 5, padString); in TestPad() 1712 expectPad(fmt, "*^#", DecimalFormat::kPadBeforePrefix, 1, (UnicodeString)"^"); in TestPad() 1740 expectPad(fmt, "*^#", DecimalFormat::kPadBeforePrefix, 1, hat); in TestPatterns2() 1741 expectPad(fmt, "$*^#", DecimalFormat::kPadAfterPrefix, 2, hat); in TestPatterns2() 1742 expectPad(fmt, "#*^", DecimalFormat::kPadBeforeSuffix, 1, hat); in TestPatterns2() 1743 expectPad(fmt, "#$*^", DecimalFormat::kPadAfterSuffix, 2, hat); in TestPatterns2() 1744 expectPad(fmt, "$*^$#", ILLEGAL); in TestPatterns2() 1745 expectPad(fmt, "#$*^$", ILLEGAL); in TestPatterns2() 1746 expectPad(fmt, "'pre'#,##0*x'post'", DecimalFormat::kPadBeforeSuffix, in TestPatterns2() 1748 expectPad(fmt, "''#0*x", DecimalFormat::kPadBeforeSuffix, in TestPatterns2() [all …]
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/format/ |
D | BigNumberFormatTest.java | 71 private void expectPad(DecimalFormat fmt, String pat, int pos) { in expectPad() method in BigNumberFormatTest 72 expectPad(fmt, pat, pos, 0, (char)0); in expectPad() 75 private void expectPad(DecimalFormat fmt, String pat, in expectPad() method in BigNumberFormatTest 106 expectPad(fmt, "*^#", DecimalFormat.PAD_BEFORE_PREFIX, 1, '^'); in TestPatterns() 107 expectPad(fmt, "$*^#", DecimalFormat.PAD_AFTER_PREFIX, 2, '^'); in TestPatterns() 108 expectPad(fmt, "#*^", DecimalFormat.PAD_BEFORE_SUFFIX, 1, '^'); in TestPatterns() 109 expectPad(fmt, "#$*^", DecimalFormat.PAD_AFTER_SUFFIX, 2, '^'); in TestPatterns() 110 expectPad(fmt, "$*^$#", ILLEGAL); in TestPatterns() 111 expectPad(fmt, "#$*^$", ILLEGAL); in TestPatterns() 112 expectPad(fmt, "'pre'#,##0*x'post'", DecimalFormat.PAD_BEFORE_SUFFIX, in TestPatterns() [all …]
|
D | NumberFormatTest.java | 1384 expectPad(fmt, "*P##.##", DecimalFormat.PAD_BEFORE_PREFIX, 5, padString); in TestPad() 1386 expectPad(fmt, "*^#", DecimalFormat.PAD_BEFORE_PREFIX, 1, '^'); in TestPad() 1413 expectPad(fmt, "*^#", DecimalFormat.PAD_BEFORE_PREFIX, 1, hat); in TestPatterns2() 1414 expectPad(fmt, "$*^#", DecimalFormat.PAD_AFTER_PREFIX, 2, hat); in TestPatterns2() 1415 expectPad(fmt, "#*^", DecimalFormat.PAD_BEFORE_SUFFIX, 1, hat); in TestPatterns2() 1416 expectPad(fmt, "#$*^", DecimalFormat.PAD_AFTER_SUFFIX, 2, hat); in TestPatterns2() 1417 expectPad(fmt, "$*^$#", -1); in TestPatterns2() 1418 expectPad(fmt, "#$*^$", -1); in TestPatterns2() 1419 … expectPad(fmt, "'pre'#,##0*x'post'", DecimalFormat.PAD_BEFORE_SUFFIX, 12, (char) 0x0078 /*x*/); in TestPatterns2() 1420 expectPad(fmt, "''#0*x", DecimalFormat.PAD_BEFORE_SUFFIX, 3, (char) 0x0078 /*x*/); in TestPatterns2() [all …]
|
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/ |
D | BigNumberFormatTest.java | 68 private void expectPad(DecimalFormat fmt, String pat, int pos) { in expectPad() method in BigNumberFormatTest 69 expectPad(fmt, pat, pos, 0, (char)0); in expectPad() 72 private void expectPad(DecimalFormat fmt, String pat, in expectPad() method in BigNumberFormatTest 103 expectPad(fmt, "*^#", DecimalFormat.PAD_BEFORE_PREFIX, 1, '^'); in TestPatterns() 104 expectPad(fmt, "$*^#", DecimalFormat.PAD_AFTER_PREFIX, 2, '^'); in TestPatterns() 105 expectPad(fmt, "#*^", DecimalFormat.PAD_BEFORE_SUFFIX, 1, '^'); in TestPatterns() 106 expectPad(fmt, "#$*^", DecimalFormat.PAD_AFTER_SUFFIX, 2, '^'); in TestPatterns() 107 expectPad(fmt, "$*^$#", ILLEGAL); in TestPatterns() 108 expectPad(fmt, "#$*^$", ILLEGAL); in TestPatterns() 109 expectPad(fmt, "'pre'#,##0*x'post'", DecimalFormat.PAD_BEFORE_SUFFIX, in TestPatterns() [all …]
|
D | NumberFormatTest.java | 1381 expectPad(fmt, "*P##.##", DecimalFormat.PAD_BEFORE_PREFIX, 5, padString); in TestPad() 1383 expectPad(fmt, "*^#", DecimalFormat.PAD_BEFORE_PREFIX, 1, '^'); in TestPad() 1410 expectPad(fmt, "*^#", DecimalFormat.PAD_BEFORE_PREFIX, 1, hat); in TestPatterns2() 1411 expectPad(fmt, "$*^#", DecimalFormat.PAD_AFTER_PREFIX, 2, hat); in TestPatterns2() 1412 expectPad(fmt, "#*^", DecimalFormat.PAD_BEFORE_SUFFIX, 1, hat); in TestPatterns2() 1413 expectPad(fmt, "#$*^", DecimalFormat.PAD_AFTER_SUFFIX, 2, hat); in TestPatterns2() 1414 expectPad(fmt, "$*^$#", -1); in TestPatterns2() 1415 expectPad(fmt, "#$*^$", -1); in TestPatterns2() 1416 … expectPad(fmt, "'pre'#,##0*x'post'", DecimalFormat.PAD_BEFORE_SUFFIX, 12, (char) 0x0078 /*x*/); in TestPatterns2() 1417 expectPad(fmt, "''#0*x", DecimalFormat.PAD_BEFORE_SUFFIX, 3, (char) 0x0078 /*x*/); in TestPatterns2() [all …]
|