| Index: source/common/ustrcase.cpp
|
| diff --git a/source/common/ustrcase.cpp b/source/common/ustrcase.cpp
|
| index fce05c8e69d47b0cbc25b4ca9dbbfede0ff1591d..e687267df868c723c8f8670523fa36f733d59aab 100644
|
| --- a/source/common/ustrcase.cpp
|
| +++ b/source/common/ustrcase.cpp
|
| @@ -1,7 +1,7 @@
|
| /*
|
| *******************************************************************************
|
| *
|
| -* Copyright (C) 2001-2011, International Business Machines
|
| +* Copyright (C) 2001-2014, International Business Machines
|
| * Corporation and others. All Rights Reserved.
|
| *
|
| *******************************************************************************
|
| @@ -29,8 +29,6 @@
|
| #include "ucase.h"
|
| #include "ustr_imp.h"
|
|
|
| -#define LENGTHOF(array) (int32_t)(sizeof(array)/sizeof((array)[0]))
|
| -
|
| U_NAMESPACE_USE
|
|
|
| /* string casing ------------------------------------------------------------ */
|
| @@ -399,7 +397,7 @@ ustrcase_map(const UCaseMap *csm,
|
| (dest>=src && dest<(src+srcLength)))
|
| ) {
|
| /* overlap: provide a temporary destination buffer and later copy the result */
|
| - if(destCapacity<=LENGTHOF(buffer)) {
|
| + if(destCapacity<=UPRV_LENGTHOF(buffer)) {
|
| /* the stack buffer is large enough */
|
| temp=buffer;
|
| } else {
|
|
|