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

Unified Diff: source/i18n/japancal.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/japancal.h ('k') | source/i18n/locdspnm.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: source/i18n/japancal.cpp
diff --git a/source/i18n/japancal.cpp b/source/i18n/japancal.cpp
index 0f985f0a79268e13d158a0f238c2c5e356441375..93ab8008b1aa45550e45fc7b5e333cd424540de3 100644
--- a/source/i18n/japancal.cpp
+++ b/source/i18n/japancal.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) 2003-2009,2012, International Business Machines Corporation and *
-* others. All Rights Reserved. *
+* Copyright (C) 2003-2009,2012,2016 International Business Machines Corporation and
+* others. All Rights Reserved.
*******************************************************************************
*
* File JAPANCAL.CPP
@@ -15,6 +17,7 @@
#if !UCONFIG_NO_FORMATTING
+#include "cmemory.h"
#include "japancal.h"
#include "unicode/gregocal.h"
#include "umutex.h"
@@ -276,7 +279,7 @@ static const struct {
{ 1989, 1, 8 } // Heisei 235
};
-#define kEraCount (sizeof(kEraInfo)/sizeof(kEraInfo[0]))
+#define kEraCount UPRV_LENGTHOF(kEraInfo)
/**
* The current era, for reference.
« no previous file with comments | « source/i18n/japancal.h ('k') | source/i18n/locdspnm.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698