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

Unified Diff: source/common/uresdata.c

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/common/uresbund.cpp ('k') | source/common/ureslocs.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: source/common/uresdata.c
diff --git a/source/common/uresdata.c b/source/common/uresdata.c
index 5ebeb0c52778bbb311ceb96c47c7e1b2e3170823..a007377762e5d96c10e25c2b60d9e85e1d88498e 100644
--- a/source/common/uresdata.c
+++ b/source/common/uresdata.c
@@ -1,9 +1,7 @@
/*
*******************************************************************************
-* *
-* Copyright (C) 1999-2012, International Business Machines Corporation *
-* and others. All Rights Reserved. *
-* *
+* Copyright (C) 1999-2014, International Business Machines Corporation
+* and others. All Rights Reserved.
*******************************************************************************
* file name: uresdata.c
* encoding: US-ASCII
@@ -33,8 +31,6 @@
#include "uresimp.h"
#include "uassert.h"
-#define LENGTHOF(array) (int32_t)(sizeof(array)/sizeof((array)[0]))
-
/*
* Resource access helpers
*/
@@ -751,11 +747,11 @@ ures_swapResource(const UDataSwapper *ds,
(key!=gUnknownKey ?
/* its table key string is "%%CollationBin" */
0==ds->compareInvChars(ds, key, -1,
- gCollationBinKey, LENGTHOF(gCollationBinKey)-1) :
+ gCollationBinKey, UPRV_LENGTHOF(gCollationBinKey)-1) :
/* its table key string is unknown but it looks like a collation binary */
ucol_looksLikeCollationBinary(ds, p+1, count))
) {
- ucol_swapBinary(ds, p+1, count, q+1, pErrorCode);
+ ucol_swap(ds, p+1, count, q+1, pErrorCode);
}
#endif
break;
« no previous file with comments | « source/common/uresbund.cpp ('k') | source/common/ureslocs.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698