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

Unified Diff: source/common/ustrcase.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/common/ustr_cnv.cpp ('k') | source/common/ustring.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: source/common/ustrcase.cpp
diff --git a/source/common/ustrcase.cpp b/source/common/ustrcase.cpp
index fce05c8e69d47b0cbc25b4ca9dbbfede0ff1591d..e687267df868c723c8f8670523fa36f733d59aab 100644
--- a/source/common/ustrcase.cpp
+++ b/source/common/ustrcase.cpp
@@ -1,7 +1,7 @@
/*
*******************************************************************************
*
-* Copyright (C) 2001-2011, International Business Machines
+* Copyright (C) 2001-2014, International Business Machines
* Corporation and others. All Rights Reserved.
*
*******************************************************************************
@@ -29,8 +29,6 @@
#include "ucase.h"
#include "ustr_imp.h"
-#define LENGTHOF(array) (int32_t)(sizeof(array)/sizeof((array)[0]))
-
U_NAMESPACE_USE
/* string casing ------------------------------------------------------------ */
@@ -399,7 +397,7 @@ ustrcase_map(const UCaseMap *csm,
(dest>=src && dest<(src+srcLength)))
) {
/* overlap: provide a temporary destination buffer and later copy the result */
- if(destCapacity<=LENGTHOF(buffer)) {
+ if(destCapacity<=UPRV_LENGTHOF(buffer)) {
/* the stack buffer is large enough */
temp=buffer;
} else {
« no previous file with comments | « source/common/ustr_cnv.cpp ('k') | source/common/ustring.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698