]> granicus.if.org Git - icu/commitdiff
ICU-13754 Move listformatter from common to i18n (#96)
authorFrank Tang <41213225+FrankYFTang@users.noreply.github.com>
Thu, 6 Sep 2018 20:31:40 +0000 (13:31 -0700)
committerShane Carr <shane@unicode.org>
Thu, 27 Sep 2018 21:27:39 +0000 (14:27 -0700)
14 files changed:
icu4c/source/common/Makefile.in
icu4c/source/common/common.vcxproj
icu4c/source/common/common.vcxproj.filters
icu4c/source/common/common_uwp.vcxproj
icu4c/source/common/ucln_cmn.h
icu4c/source/i18n/Makefile.in
icu4c/source/i18n/i18n.vcxproj
icu4c/source/i18n/i18n.vcxproj.filters
icu4c/source/i18n/i18n_uwp.vcxproj
icu4c/source/i18n/listformatter.cpp [moved from icu4c/source/common/listformatter.cpp with 99% similarity]
icu4c/source/i18n/ucln_in.h
icu4c/source/i18n/ulistformatter.cpp [moved from icu4c/source/common/ulistformatter.cpp with 100% similarity]
icu4c/source/i18n/unicode/listformatter.h [moved from icu4c/source/common/unicode/listformatter.h with 99% similarity]
icu4c/source/i18n/unicode/ulistformatter.h [moved from icu4c/source/common/unicode/ulistformatter.h with 100% similarity]

index 48401ae8eb119be5377d91b3aafca5ec74435df1..bb63e5bde70b2c2249cebe6545ee2da1496877cc 100644 (file)
@@ -109,7 +109,7 @@ rbbi.o rbbidata.o rbbinode.o rbbirb.o rbbiscan.o rbbisetb.o rbbistbl.o rbbitblb.
 serv.o servnotf.o servls.o servlk.o servlkf.o servrbf.o servslkf.o \
 uidna.o usprep.o uts46.o punycode.o \
 util.o util_props.o parsepos.o locbased.o cwchar.o wintz.o dtintrv.o ucnvsel.o propsvec.o \
-ulist.o uloc_tag.o icudataver.o icuplug.o listformatter.o ulistformatter.o \
+ulist.o uloc_tag.o icudataver.o icuplug.o \
 sharedobject.o simpleformatter.o unifiedcache.o uloc_keytype.o \
 ubiditransform.o \
 pluralmap.o \
index 134e2f2ba104ab92b87c1332eb6a49069d8c3e50..9d4f1e94988d581c09bf84109972fc897b9d2091 100644 (file)
     <ClCompile Include="ustrtrns.cpp" />
     <ClCompile Include="utext.cpp" />
     <ClCompile Include="utf_impl.cpp" />
-    <ClCompile Include="listformatter.cpp" />
-    <ClCompile Include="ulistformatter.cpp" />
     <ClCompile Include="static_unicode_sets.cpp" />
     <ClInclude Include="localsvc.h" />
     <ClInclude Include="msvcres.h" />
   <Import Project="$(SolutionDir)\Windows.CopyUnicodeHeaderFiles.targets" />
   <ImportGroup Label="ExtensionTargets">
   </ImportGroup>
-</Project>
\ No newline at end of file
+</Project>
index a7efe49adc9d39c48e900cb54ee33a1106608768..52034549f1f6af00e3e16ac113f1a918891d30d9 100644 (file)
     <ClCompile Include="bytestriebuilder.cpp">
       <Filter>collections</Filter>
     </ClCompile>
-    <ClCompile Include="listformatter.cpp">
-      <Filter>formatting</Filter>
-    </ClCompile>
-    <ClCompile Include="ulistformatter.cpp">
-      <Filter>formatting</Filter>
-    </ClCompile>
     <ClCompile Include="messagepattern.cpp">
       <Filter>formatting</Filter>
     </ClCompile>
     <CustomBuild Include="unicode\messagepattern.h">
       <Filter>formatting</Filter>
     </CustomBuild>
-    <CustomBuild Include="unicode\listformatter.h">
-      <Filter>formatting</Filter>
-    </CustomBuild>
-    <CustomBuild Include="unicode\ulistformatter.h">
-      <Filter>formatting</Filter>
-    </CustomBuild>
     <CustomBuild Include="unicode\appendable.h">
       <Filter>strings</Filter>
     </CustomBuild>
index d7f0187ceac9f66cbba8bf27d14a00d109821a54..b9207e1ebdf83b8074f665a13adfaf812b9b345c 100644 (file)
     <ClCompile Include="ustrtrns.cpp" />
     <ClCompile Include="utext.cpp" />
     <ClCompile Include="utf_impl.cpp" />
-    <ClCompile Include="listformatter.cpp" />
-    <ClCompile Include="ulistformatter.cpp" />
     <ClCompile Include="static_unicode_sets.cpp" />
   </ItemGroup>
   <ItemGroup>
index 9b6c2058135c5261dcf7a0bd554aa2f5f9f973e4..d1971b998d9f1883e8afcd57d7eb0f2f132a95d8 100644 (file)
@@ -52,7 +52,6 @@ typedef enum ECleanupCommonType {
     UCLN_COMMON_UCNV_IO,
     UCLN_COMMON_UDATA,
     UCLN_COMMON_PUTIL,
-    UCLN_COMMON_LIST_FORMATTER,
     UCLN_COMMON_UINIT,
 
     /*
index 7d4e21b93bbf5e8cc19661a3b1ce06f5cdef0b2b..6d9496ce2374891acb32fe0a8502c3dc77ddc380 100644 (file)
@@ -81,6 +81,7 @@ collationsets.o \
 collationcompare.o collationfastlatin.o collationkeys.o rulebasedcollator.o collationroot.o \
 collationrootelements.o collationdatabuilder.o \
 collationweights.o collationruleparser.o collationbuilder.o collationfastlatinbuilder.o \
+listformatter.o ulistformatter.o \
 strmatch.o usearch.o search.o stsearch.o \
 translit.o utrans.o esctrn.o unesctrn.o funcrepl.o strrepl.o tridpars.o \
 cpdtrans.o rbt.o rbt_data.o rbt_pars.o rbt_rule.o rbt_set.o \
index 3297ab20f373693762f05c3ef846dbf3a21862ac..b0c57ce62ae3ab4b14d37f069933acba3569352c 100644 (file)
     <ClCompile Include="indiancal.cpp" />
     <ClCompile Include="islamcal.cpp" />
     <ClCompile Include="japancal.cpp" />
+    <ClCompile Include="listformatter.cpp" />
+    <ClCompile Include="ulistformatter.cpp" />
     <ClCompile Include="measfmt.cpp" />
     <ClCompile Include="measunit.cpp" />
     <ClCompile Include="measure.cpp" />
   <Import Project="$(SolutionDir)\Windows.CopyUnicodeHeaderFiles.targets" />
   <ImportGroup Label="ExtensionTargets">
   </ImportGroup>
-</Project>
\ No newline at end of file
+</Project>
index 494c8e166388eef13f4345773a2f6b681952557e..752e4ece46a3970e4ddf62f9f97aa01b6f49b94a 100644 (file)
     <ClCompile Include="japancal.cpp">
       <Filter>formatting</Filter>
     </ClCompile>
+    <ClCompile Include="listformatter.cpp">
+      <Filter>formatting</Filter>
+    </ClCompile>
+    <ClCompile Include="ulistformatter.cpp">
+      <Filter>formatting</Filter>
+    </ClCompile>
     <ClCompile Include="measfmt.cpp">
       <Filter>formatting</Filter>
     </ClCompile>
       <Filter>misc</Filter>
     </ResourceCompile>
   </ItemGroup>
-</Project>
\ No newline at end of file
+</Project>
index 6379486def1c91c5b3ae8ee7bf5174c08c109a3d..d4dbfe645304d9579e399fd200970f370beac591 100644 (file)
     <ClCompile Include="indiancal.cpp" />
     <ClCompile Include="islamcal.cpp" />
     <ClCompile Include="japancal.cpp" />
+    <ClCompile Include="listformatter.cpp" />
+    <ClCompile Include="ulistformatter.cpp" />
     <ClCompile Include="measfmt.cpp" />
     <ClCompile Include="measunit.cpp" />
     <ClCompile Include="measure.cpp" />
similarity index 99%
rename from icu4c/source/common/listformatter.cpp
rename to icu4c/source/i18n/listformatter.cpp
index 33a8ac28671fc66158383d3106fbe6e4e7fdad7b..042af88eb931553b2ab837670e89cd4f447b9862 100644 (file)
@@ -23,7 +23,7 @@
 #include "cstring.h"
 #include "ulocimp.h"
 #include "charstr.h"
-#include "ucln_cmn.h"
+#include "ucln_in.h"
 #include "uresimp.h"
 #include "resource.h"
 
@@ -114,7 +114,7 @@ void ListFormatter::initializeHash(UErrorCode& errorCode) {
     }
 
     listPatternHash->setValueDeleter(uprv_deleteListFormatInternal);
-    ucln_common_registerCleanup(UCLN_COMMON_LIST_FORMATTER, uprv_listformatter_cleanup);
+    ucln_i18n_registerCleanup(UCLN_I18N_LIST_FORMATTER, uprv_listformatter_cleanup);
 
 }
 
index 318eafc143c9686a1c06c3bbcb6cdc9b4a1edb45..337621f4abc4841de08230598c14586c3f410ac7 100644 (file)
@@ -58,6 +58,7 @@ typedef enum ECleanupI18NType {
     UCLN_I18N_GENDERINFO,
     UCLN_I18N_CDFINFO,
     UCLN_I18N_REGION,
+    UCLN_I18N_LIST_FORMATTER,
     UCLN_I18N_COUNT /* This must be last */
 } ECleanupI18NType;
 
similarity index 99%
rename from icu4c/source/common/unicode/listformatter.h
rename to icu4c/source/i18n/unicode/listformatter.h
index c85e3d9741c03b283572e9274ebb0347634d0c52..742fce365d9a7c9670fcf8bf474fa3727f5e4852 100644 (file)
@@ -65,7 +65,7 @@ struct ListFormatData : public UMemory {
  * The ListFormatter class is not intended for public subclassing.
  * @stable ICU 50
  */
-class U_COMMON_API ListFormatter : public UObject{
+class U_I18N_API ListFormatter : public UObject{
 
   public: