Chromium Code Reviews

Unified Diff: source/extra/scrptrun/scrptrun.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.
Jump to:
View side-by-side diff with in-line comments
« no previous file with comments | « source/extra/scrptrun/scrptrun.h ('k') | source/extra/scrptrun/srtest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: source/extra/scrptrun/scrptrun.cpp
diff --git a/source/extra/scrptrun/scrptrun.cpp b/source/extra/scrptrun/scrptrun.cpp
index 8d9865155afab8e3a45e240bb2582b9a5872fa96..bd5105aaa11ff8f2b92338e32cb9319dfb8f33ba 100644
--- a/source/extra/scrptrun/scrptrun.cpp
+++ b/source/extra/scrptrun/scrptrun.cpp
@@ -1,7 +1,9 @@
+// Copyright (C) 2016 and later: Unicode, Inc. and others.
+// License & terms of use: http://www.unicode.org/copyright.html
/*
*******************************************************************************
*
- * Copyright (C) 1999-2001, International Business Machines
+ * Copyright (C) 1999-2016, International Business Machines
* Corporation and others. All Rights Reserved.
*
*******************************************************************************
@@ -14,10 +16,9 @@
#include "unicode/utypes.h"
#include "unicode/uscript.h"
+#include "cmemory.h"
#include "scrptrun.h"
-#define ARRAY_SIZE(array) (sizeof array / sizeof array[0])
-
const char ScriptRun::fgClassID=0;
UChar32 ScriptRun::pairedChars[] = {
@@ -40,7 +41,7 @@ UChar32 ScriptRun::pairedChars[] = {
0x301a, 0x301b
};
-const int32_t ScriptRun::pairedCharCount = ARRAY_SIZE(pairedChars);
+const int32_t ScriptRun::pairedCharCount = UPRV_LENGTHOF(pairedChars);
const int32_t ScriptRun::pairedCharPower = 1 << highBit(pairedCharCount);
const int32_t ScriptRun::pairedCharExtra = pairedCharCount - pairedCharPower;
« no previous file with comments | « source/extra/scrptrun/scrptrun.h ('k') | source/extra/scrptrun/srtest.cpp » ('j') | no next file with comments »

Powered by Google App Engine