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); |