ICU-13634 Refactoring getPrefixSuffix methods. In ICU4C, the pattern modifier is...
authorShane Carr <shane@unicode.org>
Sat, 21 Apr 2018 08:01:19 +0000 (08:01 +0000)
committerShane Carr <shane@unicode.org>
Sat, 21 Apr 2018 08:01:19 +0000 (08:01 +0000)
commite59eb483143a659d13498b756c91cbbdeed2573c
tree9a5b0b42d284482697e77fc936afd00920856dbd
parentf412770e9d9092cf8909399a0ff341d553f75bed
ICU-13634 Refactoring getPrefixSuffix methods.  In ICU4C, the pattern modifier is now accessed directly.  In ICU4J, they use the same detour through the pipeline code path as before with a TODO to improve to be closer to ICU4C.  In addition, in both ICU4C and ICU4J, getPrefixSuffix now uses the compiled formatter when available.

X-SVN-Rev: 41258
12 files changed:
icu4c/source/i18n/decimfmt.cpp
icu4c/source/i18n/number_fluent.cpp
icu4c/source/i18n/number_formatimpl.cpp
icu4c/source/i18n/number_formatimpl.h
icu4c/source/i18n/number_patternmodifier.cpp
icu4c/source/i18n/number_patternmodifier.h
icu4c/source/i18n/unicode/numberformatter.h
icu4j/main/classes/core/src/com/ibm/icu/impl/number/MutablePatternModifier.java
icu4j/main/classes/core/src/com/ibm/icu/number/LocalizedNumberFormatter.java
icu4j/main/classes/core/src/com/ibm/icu/number/NumberFormatterImpl.java
icu4j/main/classes/core/src/com/ibm/icu/text/DecimalFormat.java
icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/NumberFormatTest.java