]> granicus.if.org Git - icu/commit
ICU-20429 Renaming [Number->Formatted]StringBuilder and refactoring.
authorShane Carr <shane@unicode.org>
Fri, 5 Apr 2019 23:43:19 +0000 (16:43 -0700)
committerShane F. Carr <shane@unicode.org>
Sat, 6 Apr 2019 01:08:07 +0000 (20:08 -0500)
commit6daab85db451455a1e2d7427301010f8ce6d2624
tree487801c1d26ee9b30adb9a96313a1bc9eaeaf734
parent83a0542b5b52a30b7af736f5ef6b0405f6582867
ICU-20429 Renaming [Number->Formatted]StringBuilder and refactoring.

- StringSegment, ICU4C:
  * Moved to top icu namespace
  * Compilation unit renamed to string_segment.
- NumberStringBuilder, C and J:
  * Moved to main icu namespace
  * Compilation unit renamed to formatted_string_builder
  * Renamed class to FormattedStringBuilder
- Moves nextPosition logic of NumberStringBuilder to helper class
80 files changed:
icu4c/source/i18n/Makefile.in
icu4c/source/i18n/formatted_string_builder.cpp [moved from icu4c/source/i18n/number_stringbuilder.cpp with 58% similarity]
icu4c/source/i18n/formatted_string_builder.h [moved from icu4c/source/i18n/number_stringbuilder.h with 54% similarity]
icu4c/source/i18n/formattedval_impl.h
icu4c/source/i18n/formattedval_sbimpl.cpp
icu4c/source/i18n/i18n.vcxproj
icu4c/source/i18n/i18n.vcxproj.filters
icu4c/source/i18n/i18n_uwp.vcxproj
icu4c/source/i18n/number_affixutils.cpp
icu4c/source/i18n/number_affixutils.h
icu4c/source/i18n/number_asformat.cpp
icu4c/source/i18n/number_fluent.cpp
icu4c/source/i18n/number_formatimpl.cpp
icu4c/source/i18n/number_formatimpl.h
icu4c/source/i18n/number_modifiers.cpp
icu4c/source/i18n/number_modifiers.h
icu4c/source/i18n/number_output.cpp
icu4c/source/i18n/number_padding.cpp
icu4c/source/i18n/number_patternmodifier.cpp
icu4c/source/i18n/number_patternmodifier.h
icu4c/source/i18n/number_scientific.cpp
icu4c/source/i18n/number_scientific.h
icu4c/source/i18n/number_skeletons.cpp
icu4c/source/i18n/number_skeletons.h
icu4c/source/i18n/number_types.h
icu4c/source/i18n/number_utils.h
icu4c/source/i18n/number_utypes.h
icu4c/source/i18n/numparse_affixes.cpp
icu4c/source/i18n/numparse_compositions.cpp
icu4c/source/i18n/numparse_currency.cpp
icu4c/source/i18n/numparse_decimal.cpp
icu4c/source/i18n/numparse_impl.h
icu4c/source/i18n/numparse_parsednumber.cpp
icu4c/source/i18n/numparse_scientific.cpp
icu4c/source/i18n/numparse_stringsegment.h [deleted file]
icu4c/source/i18n/numparse_symbols.cpp
icu4c/source/i18n/numparse_types.h
icu4c/source/i18n/numrange_fluent.cpp
icu4c/source/i18n/numrange_impl.cpp
icu4c/source/i18n/numrange_impl.h
icu4c/source/i18n/quantityformatter.cpp
icu4c/source/i18n/quantityformatter.h
icu4c/source/i18n/reldatefmt.cpp
icu4c/source/i18n/string_segment.cpp [moved from icu4c/source/i18n/numparse_stringsegment.cpp with 96% similarity]
icu4c/source/i18n/string_segment.h [new file with mode: 0644]
icu4c/source/i18n/unicode/numberformatter.h
icu4c/source/test/depstest/dependencies.txt
icu4c/source/test/intltest/Makefile.in
icu4c/source/test/intltest/formatted_string_builder_test.cpp [moved from icu4c/source/test/intltest/numbertest_stringbuilder.cpp with 81% similarity]
icu4c/source/test/intltest/intltest.vcxproj
icu4c/source/test/intltest/intltest.vcxproj.filters
icu4c/source/test/intltest/itformat.cpp
icu4c/source/test/intltest/numbertest.h
icu4c/source/test/intltest/numbertest_affixutils.cpp
icu4c/source/test/intltest/numbertest_modifiers.cpp
icu4c/source/test/intltest/numbertest_patternmodifier.cpp
icu4c/source/test/intltest/string_segment_test.cpp [moved from icu4c/source/test/intltest/numbertest_stringsegment.cpp with 91% similarity]
icu4j/main/classes/core/src/com/ibm/icu/impl/FormattedStringBuilder.java [moved from icu4j/main/classes/core/src/com/ibm/icu/impl/number/NumberStringBuilder.java with 64% similarity]
icu4j/main/classes/core/src/com/ibm/icu/impl/FormattedValueStringBuilderImpl.java [new file with mode: 0644]
icu4j/main/classes/core/src/com/ibm/icu/impl/StringSegment.java
icu4j/main/classes/core/src/com/ibm/icu/impl/number/AffixUtils.java
icu4j/main/classes/core/src/com/ibm/icu/impl/number/ConstantAffixModifier.java
icu4j/main/classes/core/src/com/ibm/icu/impl/number/ConstantMultiFieldModifier.java
icu4j/main/classes/core/src/com/ibm/icu/impl/number/CurrencySpacingEnabledModifier.java
icu4j/main/classes/core/src/com/ibm/icu/impl/number/Modifier.java
icu4j/main/classes/core/src/com/ibm/icu/impl/number/MutablePatternModifier.java
icu4j/main/classes/core/src/com/ibm/icu/impl/number/Padder.java
icu4j/main/classes/core/src/com/ibm/icu/impl/number/SimpleModifier.java
icu4j/main/classes/core/src/com/ibm/icu/number/FormattedNumber.java
icu4j/main/classes/core/src/com/ibm/icu/number/FormattedNumberRange.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/number/NumberRangeFormatterImpl.java
icu4j/main/classes/core/src/com/ibm/icu/number/ScientificNotation.java
icu4j/main/classes/core/src/com/ibm/icu/text/RelativeDateTimeFormatter.java
icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/FormattedStringBuilderTest.java [moved from icu4j/main/tests/core/src/com/ibm/icu/dev/test/number/NumberStringBuilderTest.java with 87% similarity]
icu4j/main/tests/core/src/com/ibm/icu/dev/test/number/AffixUtilsTest.java
icu4j/main/tests/core/src/com/ibm/icu/dev/test/number/DecimalQuantityTest.java
icu4j/main/tests/core/src/com/ibm/icu/dev/test/number/ModifierTest.java
icu4j/main/tests/core/src/com/ibm/icu/dev/test/number/MutablePatternModifierTest.java