| Index: source/test/cintltst/spreptst.c
|
| diff --git a/source/test/cintltst/spreptst.c b/source/test/cintltst/spreptst.c
|
| index fc3a9c4e7bebd4e829b57f7308abd6454bc5ff3c..92d483809aa5571d9168b1521fc18428948320cb 100644
|
| --- a/source/test/cintltst/spreptst.c
|
| +++ b/source/test/cintltst/spreptst.c
|
| @@ -1,7 +1,7 @@
|
| /*
|
| *******************************************************************************
|
| *
|
| - * Copyright (C) 2003-2010, International Business Machines
|
| + * Copyright (C) 2003-2014, International Business Machines
|
| * Corporation and others. All Rights Reserved.
|
| *
|
| *******************************************************************************
|
| @@ -25,9 +25,6 @@
|
| #include "cintltst.h"
|
| #include "nfsprep.h"
|
|
|
| -
|
| -#define LENGTHOF(array) (int32_t)(sizeof(array)/sizeof((array)[0]))
|
| -
|
| void addUStringPrepTest(TestNode** root);
|
| void doStringPrepTest(const char* binFileName, const char* txtFileName,
|
| int32_t options, UErrorCode* errorCode);
|
| @@ -444,7 +441,7 @@ Test_nfs4_mixed_prep(void){
|
| char src[MAX_BUFFER_SIZE];
|
| int32_t srcLen;
|
|
|
| - for(i=0; i< LENGTHOF(mixed_prep_data); i++){
|
| + for(i=0; i< UPRV_LENGTHOF(mixed_prep_data); i++){
|
| int32_t destLen=0;
|
| char* dest = NULL;
|
| UErrorCode status = U_ZERO_ERROR;
|
| @@ -761,7 +758,7 @@ static void TestStringPrepProfiles(void) {
|
| int32_t i, testNum = 0;
|
| UStringPrepProfile *sprep = NULL;
|
|
|
| - for (i = 0; i < LENGTHOF(profile_test_case); i++) {
|
| + for (i = 0; i < UPRV_LENGTHOF(profile_test_case); i++) {
|
| if (uprv_strstr(profile_test_case[i], "RFC")) {
|
| if (sprep != NULL) {
|
| usprep_close(sprep);
|
|
|