]> git.saurik.com Git - apple/icu.git/blobdiff - icuSources/common/usc_impl.c
ICU-57132.0.1.tar.gz
[apple/icu.git] / icuSources / common / usc_impl.c
index e30c7f5ad274ad61b2f8853e36206846530c668a..1769269378b26c13487d9e48c91f23c0f03c1e33 100644 (file)
@@ -1,6 +1,6 @@
 /*
 **********************************************************************
-*   Copyright (C) 1999-2014, International Business Machines
+*   Copyright (C) 1999-2016, International Business Machines
 *   Corporation and others.  All Rights Reserved.
 **********************************************************************
 *
@@ -17,8 +17,6 @@
 #include "usc_impl.h"
 #include "cmemory.h"
 
-#define ARRAY_SIZE(array) (sizeof array  / sizeof array[0])
-
 #define PAREN_STACK_DEPTH 32
 
 #define MOD(sp) ((sp) % PAREN_STACK_DEPTH)
@@ -156,7 +154,7 @@ highBit(int32_t value)
 static int32_t
 getPairIndex(UChar32 ch)
 {
-    int32_t pairedCharCount = ARRAY_SIZE(pairedChars);
+    int32_t pairedCharCount = UPRV_LENGTHOF(pairedChars);
     int32_t pairedCharPower = 1 << highBit(pairedCharCount);
     int32_t pairedCharExtra = pairedCharCount - pairedCharPower;