X-Git-Url: https://git.saurik.com/apple/icu.git/blobdiff_plain/b75a7d8f3b4adbae880cab104ce2c6a50eee4db2..ef6cf650f4a75c3f97de06b51fa104f2069b9ea2:/icuSources/test/perf/ubrkperf/ubrkperf.cpp diff --git a/icuSources/test/perf/ubrkperf/ubrkperf.cpp b/icuSources/test/perf/ubrkperf/ubrkperf.cpp index 7461affb..eb2cde7d 100644 --- a/icuSources/test/perf/ubrkperf/ubrkperf.cpp +++ b/icuSources/test/perf/ubrkperf/ubrkperf.cpp @@ -1,6 +1,7 @@ /******************************************************************** * COPYRIGHT: - * Copyright (C) 2001 IBM, Inc. All Rights Reserved. + * Copyright (C) 2001-2016 International Business Machines Corporation + * and others. All Rights Reserved. * ********************************************************************/ /******************************************************************************** @@ -14,11 +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) @@ -80,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; @@ -189,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) { @@ -211,7 +215,7 @@ m_fileLen_(0) m_file_ = getBuffer(m_fileLen_, status); if(status== U_ILLEGAL_ARGUMENT_ERROR){ - fprintf(stderr, gUsageString, "normperf"); + fprintf(stderr, gUsageString, "ubrkperf"); fprintf(stderr, "\t-m or --mode Required mode for breakiterator: char, word, line or sentence\n"); return;