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