]> granicus.if.org Git - icu/commitdiff
ICU-13384 Adds #include unicode/utypes.h
authorNorbert Runge <nrunge@google.com>
Wed, 4 Oct 2017 22:51:06 +0000 (22:51 +0000)
committerNorbert Runge <nrunge@google.com>
Wed, 4 Oct 2017 22:51:06 +0000 (22:51 +0000)
X-SVN-Rev: 40557

40 files changed:
icu4c/source/i18n/number_affixutils.cpp
icu4c/source/i18n/number_affixutils.h
icu4c/source/i18n/number_compact.cpp
icu4c/source/i18n/number_compact.h
icu4c/source/i18n/number_decimalquantity.cpp
icu4c/source/i18n/number_decimalquantity.h
icu4c/source/i18n/number_decimfmtprops.cpp
icu4c/source/i18n/number_decimfmtprops.h
icu4c/source/i18n/number_fluent.cpp
icu4c/source/i18n/number_formatimpl.cpp
icu4c/source/i18n/number_formatimpl.h
icu4c/source/i18n/number_grouping.cpp
icu4c/source/i18n/number_integerwidth.cpp
icu4c/source/i18n/number_longnames.cpp
icu4c/source/i18n/number_longnames.h
icu4c/source/i18n/number_modifiers.cpp
icu4c/source/i18n/number_modifiers.h
icu4c/source/i18n/number_notation.cpp
icu4c/source/i18n/number_padding.cpp
icu4c/source/i18n/number_patternmodifier.cpp
icu4c/source/i18n/number_patternmodifier.h
icu4c/source/i18n/number_patternstring.cpp
icu4c/source/i18n/number_patternstring.h
icu4c/source/i18n/number_rounding.cpp
icu4c/source/i18n/number_roundingutils.h
icu4c/source/i18n/number_scientific.cpp
icu4c/source/i18n/number_scientific.h
icu4c/source/i18n/number_stringbuilder.cpp
icu4c/source/i18n/number_stringbuilder.h
icu4c/source/i18n/number_types.h
icu4c/source/i18n/number_utils.h
icu4c/source/i18n/unicode/numberformatter.h
icu4c/source/test/intltest/numbertest.h
icu4c/source/test/intltest/numbertest_affixutils.cpp
icu4c/source/test/intltest/numbertest_api.cpp
icu4c/source/test/intltest/numbertest_decimalquantity.cpp
icu4c/source/test/intltest/numbertest_modifiers.cpp
icu4c/source/test/intltest/numbertest_patternmodifier.cpp
icu4c/source/test/intltest/numbertest_patternstring.cpp
icu4c/source/test/intltest/numbertest_stringbuilder.cpp

index 300f8b8b252c2c91f2d21da85a4ff2316ab8eb4d..88096e4ca0752da3deca439ad722eca6a71f38e5 100644 (file)
@@ -1,6 +1,8 @@
 // © 2017 and later: Unicode, Inc. and others.
 // License & terms of use: http://www.unicode.org/copyright.html
 
+#include "unicode/utypes.h"
+
 #if !UCONFIG_NO_FORMATTING
 
 #include "number_affixutils.h"
index db10f866c4add4b3455b06717922759395a1fbbd..76187ef5a39ef327f0e46e7aa21ff5018ae1c888 100644 (file)
@@ -1,6 +1,8 @@
 // © 2017 and later: Unicode, Inc. and others.
 // License & terms of use: http://www.unicode.org/copyright.html
 
+#include "unicode/utypes.h"
+
 #if !UCONFIG_NO_FORMATTING
 #ifndef __NUMBER_AFFIXUTILS_H__
 #define __NUMBER_AFFIXUTILS_H__
index 8943ebbf194029f4e8efef5518d1cbd6d6c15603..9a30fbc340245a1fe36d61c27f0759f6fb2f1ed8 100644 (file)
@@ -1,6 +1,8 @@
 // © 2017 and later: Unicode, Inc. and others.
 // License & terms of use: http://www.unicode.org/copyright.html
 
+#include "unicode/utypes.h"
+
 #if !UCONFIG_NO_FORMATTING
 
 #include "resource.h"
index 89a6c0537cef9b553c2d307a1639e61aacf0ce65..985e4e273b6dbca37aa44605503754d1c827b33e 100644 (file)
@@ -1,6 +1,8 @@
 // © 2017 and later: Unicode, Inc. and others.
 // License & terms of use: http://www.unicode.org/copyright.html
 
+#include "unicode/utypes.h"
+
 #if !UCONFIG_NO_FORMATTING
 #ifndef __NUMBER_COMPACT_H__
 #define __NUMBER_COMPACT_H__
index 1582e6e27be147a228d5c5bd5f143bd277b09386..6598feaee545a44369bd990a98678541c1d12d72 100644 (file)
@@ -1,6 +1,8 @@
 // © 2017 and later: Unicode, Inc. and others.
 // License & terms of use: http://www.unicode.org/copyright.html
 
+#include "unicode/utypes.h"
+
 #if !UCONFIG_NO_FORMATTING
 
 #include "uassert.h"
@@ -1006,9 +1008,12 @@ UnicodeString DecimalQuantity::toNumberString() const {
     for (int32_t i = 0; i < precision; i++) {
         digits[i] = getDigitPos(precision - i - 1) + '0';
     }
+    auto digits16 = new char16_t[precision + 11];
+    u_charsToUChars(digits, digits16, precision + 11);
     snprintf(digits + precision, 11, "E%d", scale);
-    UnicodeString ret(digits);
+    UnicodeString ret(digits16);
     delete[] digits;
+    delete[] digits16;
     return ret;
 }
 
index d270478a6ae20c283e04b1fc43734b71e3685389..d7837d7326e6cb9ab2e501af9dbeaa8cbee69b29 100644 (file)
@@ -1,6 +1,8 @@
 // © 2017 and later: Unicode, Inc. and others.
 // License & terms of use: http://www.unicode.org/copyright.html
 
+#include "unicode/utypes.h"
+
 #if !UCONFIG_NO_FORMATTING
 #ifndef __NUMBER_DECIMALQUANTITY_H__
 #define __NUMBER_DECIMALQUANTITY_H__
index c5c037c090079bbff463f16deac1215aac490856..dd8f86e66e8d5394377aa8534c648f1bcc8d7262 100644 (file)
@@ -1,6 +1,8 @@
 // © 2017 and later: Unicode, Inc. and others.
 // License & terms of use: http://www.unicode.org/copyright.html
 
+#include "unicode/utypes.h"
+
 #if !UCONFIG_NO_FORMATTING
 
 #include "number_decimfmtprops.h"
index 27900f1802bdba4b0e05a835369f309e910b5732..62bed6cd13060c57f18ad8883b526e8c2d21ec20 100644 (file)
@@ -1,6 +1,8 @@
 // © 2017 and later: Unicode, Inc. and others.
 // License & terms of use: http://www.unicode.org/copyright.html
 
+#include "unicode/utypes.h"
+
 #if !UCONFIG_NO_FORMATTING
 #ifndef __NUMBER_DECIMFMTPROPS_H__
 #define __NUMBER_DECIMFMTPROPS_H__
index 4f18d6e361b99c640846e4623fd2ca8836708625..7257df24ff62d70ffb28fff690b22cef0ea731c7 100644 (file)
@@ -1,6 +1,8 @@
 // © 2017 and later: Unicode, Inc. and others.
 // License & terms of use: http://www.unicode.org/copyright.html
 
+#include "unicode/utypes.h"
+
 #if !UCONFIG_NO_FORMATTING
 
 #include "uassert.h"
index cac85c387693fa71cd5cf7b13997a6fe7d761c06..8c04ca01106b1ec933dfcdbc077909357141c2d8 100644 (file)
@@ -1,6 +1,8 @@
 // © 2017 and later: Unicode, Inc. and others.
 // License & terms of use: http://www.unicode.org/copyright.html
 
+#include "unicode/utypes.h"
+
 #if !UCONFIG_NO_FORMATTING
 
 #include "cstring.h"
index 0970d4ce4869c0fe89d6b3b8abd1e4454a9f9ef1..9531b6f57e9e81cbcf91adff84e8c0278680ea3f 100644 (file)
@@ -1,6 +1,8 @@
 // © 2017 and later: Unicode, Inc. and others.
 // License & terms of use: http://www.unicode.org/copyright.html
 
+#include "unicode/utypes.h"
+
 #if !UCONFIG_NO_FORMATTING
 #ifndef __NUMBER_FORMATIMPL_H__
 #define __NUMBER_FORMATIMPL_H__
index be24ec9fc7f0abbe2d3ed0ff21d9d908bcc90f67..65df97e822025a5170608538a02363935e336b8e 100644 (file)
@@ -1,6 +1,8 @@
 // © 2017 and later: Unicode, Inc. and others.
 // License & terms of use: http://www.unicode.org/copyright.html
 
+#include "unicode/utypes.h"
+
 #if !UCONFIG_NO_FORMATTING
 
 #include "unicode/numberformatter.h"
index c5673e3a8f0a8f1b490f533ad51e2a62f0f5ea23..7d95a026130782d271b1500ffe9d04c780b3ec1a 100644 (file)
@@ -1,6 +1,8 @@
 // © 2017 and later: Unicode, Inc. and others.
 // License & terms of use: http://www.unicode.org/copyright.html
 
+#include "unicode/utypes.h"
+
 #if !UCONFIG_NO_FORMATTING
 
 #include "unicode/numberformatter.h"
index 1ef7e5798a4b3b920675a4c80c8cf9bdb32d69f5..884b81ca5e8c9c846b93cebd770725c1ac0e099f 100644 (file)
@@ -1,6 +1,8 @@
 // © 2017 and later: Unicode, Inc. and others.
 // License & terms of use: http://www.unicode.org/copyright.html
 
+#include "unicode/utypes.h"
+
 #if !UCONFIG_NO_FORMATTING
 
 #include "unicode/ures.h"
index 99d432630255e467358ff19615053afa8820dbc8..e724ff6260796e8bef989c717b754f06804c85fd 100644 (file)
@@ -1,6 +1,8 @@
 // © 2017 and later: Unicode, Inc. and others.
 // License & terms of use: http://www.unicode.org/copyright.html
 
+#include "unicode/utypes.h"
+
 #if !UCONFIG_NO_FORMATTING
 #ifndef __NUMBER_LONGNAMES_H__
 #define __NUMBER_LONGNAMES_H__
index 26f0a86f2c95fc55d62d6e1f8b34a068be2d31e0..b01b6780b06a8295db5a6747e314b374cb285ce3 100644 (file)
@@ -1,6 +1,8 @@
 // © 2017 and later: Unicode, Inc. and others.
 // License & terms of use: http://www.unicode.org/copyright.html
 
+#include "unicode/utypes.h"
+
 #if !UCONFIG_NO_FORMATTING
 
 #include "umutex.h"
index 949331e3caa02984a80ac32d019c98e4fd5f9a2e..7c02a3d64fd9749ae7cf11de0801e6378e454514 100644 (file)
@@ -1,6 +1,8 @@
 // © 2017 and later: Unicode, Inc. and others.
 // License & terms of use: http://www.unicode.org/copyright.html
 
+#include "unicode/utypes.h"
+
 #if !UCONFIG_NO_FORMATTING
 #ifndef __NUMBER_MODIFIERS_H__
 #define __NUMBER_MODIFIERS_H__
index 6b1d600bfeb0c844fe06a29f698b5ed936c1608c..f7ccb783dd4cce87fd4253a677aebc0d7293af45 100644 (file)
@@ -1,6 +1,8 @@
 // © 2017 and later: Unicode, Inc. and others.
 // License & terms of use: http://www.unicode.org/copyright.html
 
+#include "unicode/utypes.h"
+
 #if !UCONFIG_NO_FORMATTING
 
 #include "unicode/numberformatter.h"
index fb1d8173a1646161787bafd04596b28d31b2df9f..983949eddc334741f3e946cb2961533db30ad998 100644 (file)
@@ -1,6 +1,8 @@
 // © 2017 and later: Unicode, Inc. and others.
 // License & terms of use: http://www.unicode.org/copyright.html
 
+#include "unicode/utypes.h"
+
 #if !UCONFIG_NO_FORMATTING
 
 #include "unicode/numberformatter.h"
index c927939080b1d7e94b3679cfd5f838b2b5b33765..8e44b3f964043eab81b95400a71400a8543ed134 100644 (file)
@@ -1,6 +1,8 @@
 // © 2017 and later: Unicode, Inc. and others.
 // License & terms of use: http://www.unicode.org/copyright.html
 
+#include "unicode/utypes.h"
+
 #if !UCONFIG_NO_FORMATTING
 
 #include "cstring.h"
index 05580d3de3f9eb76e7922f8795db81fe631d16db..06e5ade3e11e134addbf122d2f2be14e06e7ca34 100644 (file)
@@ -1,6 +1,8 @@
 // © 2017 and later: Unicode, Inc. and others.
 // License & terms of use: http://www.unicode.org/copyright.html
 
+#include "unicode/utypes.h"
+
 #if !UCONFIG_NO_FORMATTING
 #ifndef __NUMBER_PATTERNMODIFIER_H__
 #define __NUMBER_PATTERNMODIFIER_H__
index dd6707e4f285c632c05705cde8a076d872633f1a..358ce3164666e292d549991cbac47bdbdc53f78e 100644 (file)
@@ -1,6 +1,8 @@
 // © 2017 and later: Unicode, Inc. and others.
 // License & terms of use: http://www.unicode.org/copyright.html
 
+#include "unicode/utypes.h"
+
 #if !UCONFIG_NO_FORMATTING
 
 #include "uassert.h"
index 5fbff027344ecb85aa2dff9b9a60445afde8adb0..d827ba8f826c271a0a4e42a3ea6439b6eb97f436 100644 (file)
@@ -1,6 +1,8 @@
 // © 2017 and later: Unicode, Inc. and others.
 // License & terms of use: http://www.unicode.org/copyright.html
 
+#include "unicode/utypes.h"
+
 #if !UCONFIG_NO_FORMATTING
 #ifndef __NUMBER_PATTERNSTRING_H__
 #define __NUMBER_PATTERNSTRING_H__
index 9aa0378aa8c732cf0248fa236cb20ac0f52496b2..469e0c91fca7cb911ada701dbe69eaf918556e88 100644 (file)
@@ -1,6 +1,8 @@
 // © 2017 and later: Unicode, Inc. and others.
 // License & terms of use: http://www.unicode.org/copyright.html
 
+#include "unicode/utypes.h"
+
 #if !UCONFIG_NO_FORMATTING
 
 #include "uassert.h"
index f26dbee835d7e8186261f34038eb7fd2bcc05ca9..845f26cbe9fa279b09f14242fc0511889565d1b1 100644 (file)
@@ -1,6 +1,8 @@
 // © 2017 and later: Unicode, Inc. and others.
 // License & terms of use: http://www.unicode.org/copyright.html
 
+#include "unicode/utypes.h"
+
 #if !UCONFIG_NO_FORMATTING
 #ifndef __NUMBER_ROUNDINGUTILS_H__
 #define __NUMBER_ROUNDINGUTILS_H__
index 05e9549c6539c05ee76b93b713eaca4393ddceb0..8f25afd3721561c514fe4e0db5376358ce26eb22 100644 (file)
@@ -1,6 +1,8 @@
 // © 2017 and later: Unicode, Inc. and others.
 // License & terms of use: http://www.unicode.org/copyright.html
 
+#include "unicode/utypes.h"
+
 #if !UCONFIG_NO_FORMATTING
 
 #include <cstdlib>
index bce14b00ca064820e1b6225e0cc549147bbc37d7..974ab3adb614ca34637981d03bfbb530f10c6f22 100644 (file)
@@ -1,6 +1,8 @@
 // © 2017 and later: Unicode, Inc. and others.
 // License & terms of use: http://www.unicode.org/copyright.html
 
+#include "unicode/utypes.h"
+
 #if !UCONFIG_NO_FORMATTING
 #ifndef __NUMBER_SCIENTIFIC_H__
 #define __NUMBER_SCIENTIFIC_H__
index ea6b04bd70fda887babf61296d5950fab8749ae6..b803af6a775dca3412990ddbcb124df09102f970 100644 (file)
@@ -1,6 +1,8 @@
 // © 2017 and later: Unicode, Inc. and others.
 // License & terms of use: http://www.unicode.org/copyright.html
 
+#include "unicode/utypes.h"
+
 #if !UCONFIG_NO_FORMATTING
 
 #include "number_stringbuilder.h"
index 6be4959d8d4cf5107b82ed3c782021f5ab030180..a97094ad8b48ba802b119f07ea11301820c64e3b 100644 (file)
@@ -1,6 +1,8 @@
 // © 2017 and later: Unicode, Inc. and others.
 // License & terms of use: http://www.unicode.org/copyright.html
 
+#include "unicode/utypes.h"
+
 #if !UCONFIG_NO_FORMATTING
 #ifndef __NUMBER_STRINGBUILDER_H__
 #define __NUMBER_STRINGBUILDER_H__
index 7a93d87e40e034ebe30e1ea6ca898e4142c634ae..2b01d68b9e2f95b5b644f02e0940c0a282669009 100644 (file)
@@ -1,6 +1,8 @@
 // © 2017 and later: Unicode, Inc. and others.
 // License & terms of use: http://www.unicode.org/copyright.html
 
+#include "unicode/utypes.h"
+
 #if !UCONFIG_NO_FORMATTING
 #ifndef __NUMBER_TYPES_H__
 #define __NUMBER_TYPES_H__
index 2494260a7eb934eda3a9e566f582c573ac1f6212..0814ec005daef389ffb538d54a17a2a100f89797 100644 (file)
@@ -1,6 +1,8 @@
 // © 2017 and later: Unicode, Inc. and others.
 // License & terms of use: http://www.unicode.org/copyright.html
 
+#include "unicode/utypes.h"
+
 #if !UCONFIG_NO_FORMATTING
 #ifndef __NUMBER_UTILS_H__
 #define __NUMBER_UTILS_H__
index 6c02aa12b0e706096e1727987d705b54faaa762c..3b02aaaa24a4298afe858a7ab6ebd71186b82374 100644 (file)
@@ -1,6 +1,8 @@
 // © 2017 and later: Unicode, Inc. and others.
 // License & terms of use: http://www.unicode.org/copyright.html
 
+#include "unicode/utypes.h"
+
 #if !UCONFIG_NO_FORMATTING
 #ifndef __NUMBERFORMATTER_H__
 #define __NUMBERFORMATTER_H__
index 1b8caa04aea79a283ff12372e11220bc108222a2..d22080fb499ca8d0d63180ebb79abf3c342965f9 100644 (file)
@@ -1,6 +1,8 @@
 // © 2017 and later: Unicode, Inc. and others.
 // License & terms of use: http://www.unicode.org/copyright.html
 
+#include "unicode/utypes.h"
+
 #if !UCONFIG_NO_FORMATTING
 #pragma once
 
index c0337a67af54c23a33aad3bac31c7d9354053fff..a069c0eefd66963dc6a4b8ba70361add1e2ca7cc 100644 (file)
@@ -1,6 +1,8 @@
 // © 2017 and later: Unicode, Inc. and others.
 // License & terms of use: http://www.unicode.org/copyright.html
 
+#include "unicode/utypes.h"
+
 #if !UCONFIG_NO_FORMATTING
 
 #include "putilimp.h"
index ba0f6269d58e7eaee45c33cc0c2c74a3a09c2341..9988b3e8f482e17c51387431a10b016237c3e729 100644 (file)
@@ -1,6 +1,8 @@
 // © 2017 and later: Unicode, Inc. and others.
 // License & terms of use: http://www.unicode.org/copyright.html
 
+#include "unicode/utypes.h"
+
 #if !UCONFIG_NO_FORMATTING
 
 #include "charstr.h"
index 136d90c7a1acc0b8e3cb9efe705d4ffd5452f883..69a5aaa3e3d52c3aa858cfd77c3e5fb644b75b2d 100644 (file)
@@ -1,6 +1,8 @@
 // © 2017 and later: Unicode, Inc. and others.
 // License & terms of use: http://www.unicode.org/copyright.html
 
+#include "unicode/utypes.h"
+
 #if !UCONFIG_NO_FORMATTING
 
 #include "number_decimalquantity.h"
index 3605fc60df88d60e707c234b0336be5399320e4a..3cceee2c079e31aadb50fd317c2862845468a28c 100644 (file)
@@ -1,6 +1,8 @@
 // © 2017 and later: Unicode, Inc. and others.
 // License & terms of use: http://www.unicode.org/copyright.html
 
+#include "unicode/utypes.h"
+
 #if !UCONFIG_NO_FORMATTING
 
 #include "putilimp.h"
index 32eaba901f3d9972aff5136eaf04fc02fd1b5052..22d98575dddba11bb7abbd1b6d27536a76988e71 100644 (file)
@@ -1,6 +1,8 @@
 // © 2017 and later: Unicode, Inc. and others.
 // License & terms of use: http://www.unicode.org/copyright.html
 
+#include "unicode/utypes.h"
+
 #if !UCONFIG_NO_FORMATTING
 
 #include "numbertest.h"
index 12cb3bd68ae5337a023de56ccecc6efb768410c3..ce766cddd374041f7544f212bb275a2fd5183362 100644 (file)
@@ -1,6 +1,8 @@
 // © 2017 and later: Unicode, Inc. and others.
 // License & terms of use: http://www.unicode.org/copyright.html
 
+#include "unicode/utypes.h"
+
 #if !UCONFIG_NO_FORMATTING
 
 #include "numbertest.h"
index d389dab66e097db9d206458e79535ec3c1504e73..c9d688c76d1886837a2695748256187debe0c83a 100644 (file)
@@ -1,6 +1,8 @@
 // © 2017 and later: Unicode, Inc. and others.
 // License & terms of use: http://www.unicode.org/copyright.html
 
+#include "unicode/utypes.h"
+
 #if !UCONFIG_NO_FORMATTING
 
 #include "putilimp.h"