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

Unified Diff: source/i18n/csdetect.cpp

Issue 2440913002: Update ICU to 58.1
Patch Set: Created 4 years, 2 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/i18n/csdetect.h ('k') | source/i18n/csmatch.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: source/i18n/csdetect.cpp
diff --git a/source/i18n/csdetect.cpp b/source/i18n/csdetect.cpp
index 66d8f3a2ae3cc93142b509eb1c2d51638e93f7f4..5dadf3774a14e7549efafc134dc755e11460f367 100644
--- a/source/i18n/csdetect.cpp
+++ b/source/i18n/csdetect.cpp
@@ -1,6 +1,8 @@
+// Copyright (C) 2016 and later: Unicode, Inc. and others.
+// License & terms of use: http://www.unicode.org/copyright.html
/*
**********************************************************************
- * Copyright (C) 2005-2015, International Business Machines
+ * Copyright (C) 2005-2016, International Business Machines
* Corporation and others. All Rights Reserved.
**********************************************************************
*/
@@ -27,8 +29,6 @@
#include "csrucode.h"
#include "csr2022.h"
-#define ARRAY_SIZE(array) (sizeof array / sizeof array[0])
-
#define NEW_ARRAY(type,count) (type *) uprv_malloc((count) * sizeof(type))
#define DELETE_ARRAY(array) uprv_free((void *) (array))
@@ -120,7 +120,7 @@ static void U_CALLCONV initRecognizers(UErrorCode &status) {
new CSRecognizerInfo(new CharsetRecog_IBM420_ar_ltr(), FALSE)
#endif
};
- int32_t rCount = ARRAY_SIZE(tempArray);
+ int32_t rCount = UPRV_LENGTHOF(tempArray);
fCSRecognizers = NEW_ARRAY(CSRecognizerInfo *, rCount);
« no previous file with comments | « source/i18n/csdetect.h ('k') | source/i18n/csmatch.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698