]> git.saurik.com Git - apple/icu.git/blobdiff - icuSources/i18n/decfmtst.cpp
ICU-62141.0.1.tar.gz
[apple/icu.git] / icuSources / i18n / decfmtst.cpp
index d1ea6f4d4c4a1f2850c8ef2b5d883e315a515997..e939ab474ade37ce79ed36b68164a748bcc76350 100644 (file)
@@ -1,7 +1,9 @@
+// © 2016 and later: Unicode, Inc. and others.
+// License & terms of use: http://www.unicode.org/copyright.html
 /*
 *******************************************************************************
-* Copyright (C) 2009-2013, International Business Machines Corporation and    *
-* others. All Rights Reserved.                                                *
+* Copyright (C) 2009-2016, International Business Machines Corporation and
+* others. All Rights Reserved.
 *******************************************************************************
 *
 * This file contains the class DecimalFormatStaticSets
@@ -69,7 +71,7 @@ static const UChar gStrictDashEquivalentsPattern[] = {
         // [       \      -      MINUS     ]
         0x005B, 0x005C, 0x002D, 0x2212, 0x005D, 0x0000};
 
-static UChar32 gMinusSigns[] = {
+static const UChar32 gMinusSigns[] = {
     0x002D,
     0x207B,
     0x208B,
@@ -78,7 +80,7 @@ static UChar32 gMinusSigns[] = {
     0xFE63,
     0xFF0D};
 
-static UChar32 gPlusSigns[] = {
+static const UChar32 gPlusSigns[] = {
     0x002B,
     0x207A,
     0x208A,
@@ -141,11 +143,11 @@ DecimalFormatStaticSets::DecimalFormatStaticSets(UErrorCode &status)
 
     initUnicodeSet(
             gMinusSigns,
-            sizeof(gMinusSigns) / sizeof(gMinusSigns[0]),
+            UPRV_LENGTHOF(gMinusSigns),
             fMinusSigns);
     initUnicodeSet(
             gPlusSigns,
-            sizeof(gPlusSigns) / sizeof(gPlusSigns[0]),
+            UPRV_LENGTHOF(gPlusSigns),
             fPlusSigns);
 
     // Freeze all the sets