Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(144)

Unified Diff: source/tools/toolutil/ppucd.cpp

Issue 845603002: Update ICU to 54.1 step 1 (Closed) Base URL: https://chromium.googlesource.com/chromium/deps/icu.git@master
Patch Set: remove unusued directories Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « source/tools/toolutil/pkgitems.cpp ('k') | source/tools/toolutil/swapimpl.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: source/tools/toolutil/ppucd.cpp
diff --git a/source/tools/toolutil/ppucd.cpp b/source/tools/toolutil/ppucd.cpp
index ae51ed132dfe11168292d3fbad27633294a69df4..ed5229be786a600707be72fcd1f59cfdcbbeb6fa 100644
--- a/source/tools/toolutil/ppucd.cpp
+++ b/source/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 <stdio.h>
#include <string.h>
-#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;
}
« no previous file with comments | « source/tools/toolutil/pkgitems.cpp ('k') | source/tools/toolutil/swapimpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698