X-Git-Url: https://git.saurik.com/apple/icu.git/blobdiff_plain/57a6839dcb3bba09e8228b822b290604668416fe..ef6cf650f4a75c3f97de06b51fa104f2069b9ea2:/icuSources/tools/toolutil/ppucd.cpp diff --git a/icuSources/tools/toolutil/ppucd.cpp b/icuSources/tools/toolutil/ppucd.cpp index ae51ed13..ed5229be 100644 --- a/icuSources/tools/toolutil/ppucd.cpp +++ b/icuSources/tools/toolutil/ppucd.cpp @@ -1,6 +1,6 @@ /* ******************************************************************************* -* Copyright (C) 2011-2013, International Business Machines +* Copyright (C) 2011-2014, International Business Machines * Corporation and others. All Rights Reserved. ******************************************************************************* * file name: ppucd.cpp @@ -23,8 +23,6 @@ #include #include -#define LENGTHOF(array) (int32_t)(sizeof(array)/sizeof((array)[0])) - U_NAMESPACE_BEGIN PropertyNames::~PropertyNames() {} @@ -298,7 +296,7 @@ PreparsedUCD::parseProperty(UniProps &props, const char *field, UnicodeSet &newV int32_t prop=pnames->getPropertyEnum(p); if(prop<0) { for(int32_t i=0;; ++i) { - if(i==LENGTHOF(ppucdProperties)) { + if(i==UPRV_LENGTHOF(ppucdProperties)) { // Ignore unknown property names. return TRUE; }