]> granicus.if.org Git - icu/commitdiff
ICU-11318 Adding double-conversion *.h files to vcxproj files. Adding U_I18N_API...
authorShane Carr <shane@unicode.org>
Fri, 16 Feb 2018 01:37:20 +0000 (01:37 +0000)
committerShane Carr <shane@unicode.org>
Fri, 16 Feb 2018 01:37:20 +0000 (01:37 +0000)
X-SVN-Rev: 40930

icu4c/source/i18n/double-conversion.h
icu4c/source/i18n/i18n.vcxproj
icu4c/source/i18n/i18n.vcxproj.filters

index 6df68b66237a48072779c5feb7e0108a5273f47b..693ada407fafddc4930cf48c4baee703597362e5 100644 (file)
@@ -280,7 +280,9 @@ class DoubleToStringConverter {
                    StringBuilder* result_builder) const;
 #endif // not needed for ICU
 
-  enum DtoaMode {
+// ICU PATCH: Export these as U_I18N_API for unit tests.
+
+  enum U_I18N_API DtoaMode {
     // Produce the shortest correct representation.
     // For example the output of 0.299999999999999988897 is (the less accurate
     // but correct) 0.3.
@@ -301,7 +303,7 @@ class DoubleToStringConverter {
   // kBase10MaximalLength.
   // Note that DoubleToAscii null-terminates its input. So the given buffer
   // should be at least kBase10MaximalLength + 1 characters long.
-  static const int kBase10MaximalLength = 17;
+  static const int U_I18N_API kBase10MaximalLength = 17;
 
   // Converts the given double 'v' to ascii. 'v' must not be NaN, +Infinity, or
   // -Infinity. In SHORTEST_SINGLE-mode this restriction also applies to 'v'
@@ -341,7 +343,7 @@ class DoubleToStringConverter {
   // terminating null-character when computing the maximal output size.
   // The given length is only used in debug mode to ensure the buffer is big
   // enough.
-  static void DoubleToAscii(double v,
+  static void U_I18N_API DoubleToAscii(double v,
                             DtoaMode mode,
                             int requested_digits,
                             char* buffer,
index bcfb7d022f1114e942930b91ecfdf891bb9e7491..47592a449604f7a53feeee6d130ceead6fafb745 100644 (file)
     <ClInclude Include="decNumber.h" />
     <ClInclude Include="decNumberLocal.h" />
     <ClInclude Include="digitlst.h" />
+    <ClInclude Include="double-conversion-bignum-dtoa.h" />
+    <ClInclude Include="double-conversion-bignum.h" />
+    <ClInclude Include="double-conversion-cached-powers.h" />
+    <ClInclude Include="double-conversion-diy-fp.h" />
+    <ClInclude Include="double-conversion-fast-dtoa.h" />
+    <ClInclude Include="double-conversion-ieee.h" />
+    <ClInclude Include="double-conversion-utils.h" />
+    <ClInclude Include="double-conversion.h" />
     <ClInclude Include="dt_impl.h" />
     <CustomBuild Include="unicode\dtfmtsym.h">
       <Command Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">copy "%(FullPath)" ..\..\include\unicode
index c728d4c1397562226b0dac666aa2c35f4b914db0..bf7c9ec7e4be70e04858635d09f5d2f7a206f935 100644 (file)
     <ClInclude Include="digitlst.h">
       <Filter>formatting</Filter>
     </ClInclude>
+    <ClInclude Include="double-conversion-bignum-dtoa.h">
+      <Filter>formatting</Filter>
+    </ClInclude>
+    <ClInclude Include="double-conversion-bignum.h">
+      <Filter>formatting</Filter>
+    </ClInclude>
+    <ClInclude Include="double-conversion-cached-powers.h">
+      <Filter>formatting</Filter>
+    </ClInclude>
+    <ClInclude Include="double-conversion-diy-fp.h">
+      <Filter>formatting</Filter>
+    </ClInclude>
+    <ClInclude Include="double-conversion-fast-dtoa.h">
+      <Filter>formatting</Filter>
+    </ClInclude>
+    <ClInclude Include="double-conversion-ieee.h">
+      <Filter>formatting</Filter>
+    </ClInclude>
+    <ClInclude Include="double-conversion-utils.h">
+      <Filter>formatting</Filter>
+    </ClInclude>
+    <ClInclude Include="double-conversion.h">
+      <Filter>formatting</Filter>
+    </ClInclude>
     <ClInclude Include="dt_impl.h">
       <Filter>formatting</Filter>
     </ClInclude>