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

Unified Diff: source/test/intltest/selfmts.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
Index: source/test/intltest/selfmts.cpp
diff --git a/source/test/intltest/selfmts.cpp b/source/test/intltest/selfmts.cpp
index 3c7796d8bdbc86ca5d42a5ea8dc4eeade3c8f128..30bc28f91c7bb7bb97b886b28df69e4a26d75dd5 100644
--- a/source/test/intltest/selfmts.cpp
+++ b/source/test/intltest/selfmts.cpp
@@ -1,6 +1,6 @@
/********************************************************************
* COPYRIGHT:
- * Copyright (c) 1997-2011, International Business Machines Corporation and
+ * Copyright (c) 1997-2014, International Business Machines Corporation and
* others. All Rights Reserved.
* Copyright (C) 2010 , Yahoo! Inc.
********************************************************************/
@@ -13,8 +13,6 @@
#include "cmemory.h"
#include "unicode/selfmt.h"
-#define LENGTHOF(array) (int32_t)(sizeof(array)/sizeof((array)[0]))
-
#define SIMPLE_PATTERN_STRING "feminine {feminineVerbValue} other{otherVerbValue}"
@@ -183,7 +181,7 @@ void SelectFormatTest::selectFormatUnitTest(/*char *par*/)
selFmt = NULL;
selFmt = new SelectFormat( SIMPLE_PATTERN , status);
- for (int32_t i = 0; i < LENGTHOF(keywords); i++ ){
+ for (int32_t i = 0; i < UPRV_LENGTHOF(keywords); i++ ){
status = U_ZERO_ERROR;
selFmt->format( keywords[i], result , ignore , status);
if (!U_FAILURE(status)) {
« no previous file with comments | « source/test/intltest/scientificformathelpertest.cpp ('k') | source/test/intltest/simplepatternformattertest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698