X-Git-Url: https://git.saurik.com/apple/icu.git/blobdiff_plain/57a6839dcb3bba09e8228b822b290604668416fe..b801cf366c7671a99bdcef84d1e9c0ec64b36723:/icuSources/test/intltest/tmsgfmt.cpp?ds=sidebyside diff --git a/icuSources/test/intltest/tmsgfmt.cpp b/icuSources/test/intltest/tmsgfmt.cpp index b141d82b..939de8c6 100644 --- a/icuSources/test/intltest/tmsgfmt.cpp +++ b/icuSources/test/intltest/tmsgfmt.cpp @@ -1,6 +1,6 @@ /******************************************************************** * COPYRIGHT: - * Copyright (c) 1997-2013, International Business Machines Corporation and + * Copyright (c) 1997-2014, International Business Machines Corporation and * others. All Rights Reserved. ******************************************************************** * File TMSGFMT.CPP @@ -18,6 +18,7 @@ #if !UCONFIG_NO_FORMATTING #include "tmsgfmt.h" +#include "cmemory.h" #include "unicode/format.h" #include "unicode/decimfmt.h" @@ -31,8 +32,6 @@ #include "unicode/gregocal.h" #include -#define LENGTHOF(array) (int32_t)(sizeof(array)/sizeof((array)[0])) - void TestMessageFormat::runIndexedTest(int32_t index, UBool exec, const char* &name, char* /*par*/) { @@ -1606,7 +1605,7 @@ void TestMessageFormat::TestApostropheMode() { "I don't know", "I don't know", "I don''t know", "I don't know", "I don''t know", "I don''t know" }; - int32_t tuples_count = LENGTHOF(tuples); + int32_t tuples_count = UPRV_LENGTHOF(tuples); for (int i = 0; i < tuples_count; i += 3) { UnicodeString& desired = tuples[i];