X-Git-Url: https://git.saurik.com/apple/icu.git/blobdiff_plain/46f4442e9a5a4f3b98b7c1083586332f6a8a99a4..ef6cf650f4a75c3f97de06b51fa104f2069b9ea2:/icuSources/test/perf/ubrkperf/ubrkperf.cpp?ds=inline diff --git a/icuSources/test/perf/ubrkperf/ubrkperf.cpp b/icuSources/test/perf/ubrkperf/ubrkperf.cpp index 9a090ee5..eb2cde7d 100644 --- a/icuSources/test/perf/ubrkperf/ubrkperf.cpp +++ b/icuSources/test/perf/ubrkperf/ubrkperf.cpp @@ -1,6 +1,6 @@ /******************************************************************** * COPYRIGHT: - * Copyright (C) 2001-2008 International Business Machines Corporation + * Copyright (C) 2001-2016 International Business Machines Corporation * and others. All Rights Reserved. * ********************************************************************/ @@ -15,13 +15,14 @@ ********************************************************************************* */ +#include "cmemory.h" #include "ubrkperf.h" #include "uoptions.h" #include #if 0 -#ifdef U_DARWIN +#if U_PLATFORM_IS_DARWIN_BASED #include enum{ kUCTextBreakAllMask = (kUCTextBreakClusterMask | kUCTextBreakWordMask | kUCTextBreakLineMask) @@ -83,7 +84,7 @@ void doForwardTest() { elapsedTime = timeGetTime()-startTime; } else if(opt_mac) { -#ifdef U_DARWIN +#if U_PLATFORM_IS_DARWIN_BASED createMACBrkIt(); UniChar* filePtr = text; OSStatus status = noErr; @@ -192,7 +193,7 @@ m_file_(NULL), m_fileLen_(0) { - _remainingArgc = u_parseArgs(_remainingArgc, (char**)argv, (int32_t)(sizeof(options)/sizeof(options[0])), options); + _remainingArgc = u_parseArgs(_remainingArgc, (char**)argv, UPRV_LENGTHOF(options), options); if(options[0].doesOccur) {