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

Unified Diff: source/samples/uciter8/uciter8.c

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/samples/translit/translit.sln ('k') | source/samples/uciter8/uciter8.sln » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: source/samples/uciter8/uciter8.c
diff --git a/source/samples/uciter8/uciter8.c b/source/samples/uciter8/uciter8.c
index 6c705538f646f041ee4fa6a2ee4d685659e1d9a3..85fe78618ae90ef604a2a92b590c303ad001d385 100644
--- a/source/samples/uciter8/uciter8.c
+++ b/source/samples/uciter8/uciter8.c
@@ -1,7 +1,7 @@
/*
*******************************************************************************
*
-* Copyright (C) 2003-2007, International Business Machines
+* Copyright (C) 2003-2014, International Business Machines
* Corporation and others. All Rights Reserved.
*
*******************************************************************************
@@ -24,8 +24,6 @@
#include "unicode/uiter.h"
#include "uit_len8.h"
-#define LENGTHOF(array) (sizeof(array)/sizeof((array)[0]))
-
#define log_err printf
/* UCharIterator test ------------------------------------------------------- */
@@ -320,7 +318,7 @@ TestLenient8Iterator() {
compareIterators(&iter1, "UTF16Iterator", &iter2, "Lenient8Iterator_1");
/* test get/set state */
- length=LENGTHOF(text)-1;
+ length=UPRV_LENGTHOF(text)-1;
uiter_setLenient8(&iter1, (const char*)bytes, -1);
testIteratorState(&iter1, &iter2, "Lenient8IteratorState", length/2);
testIteratorState(&iter1, &iter2, "Lenient8IteratorStatePlus1", length/2+1);
« no previous file with comments | « source/samples/translit/translit.sln ('k') | source/samples/uciter8/uciter8.sln » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698