X-Git-Url: https://git.saurik.com/apple/icu.git/blobdiff_plain/51004dcb01e06fef634b61be77ed73dd61cb6db9..refs/heads/master:/icuSources/test/perf/collperf/collperf.cpp?ds=inline diff --git a/icuSources/test/perf/collperf/collperf.cpp b/icuSources/test/perf/collperf/collperf.cpp index 5fda2fcc..137b31af 100644 --- a/icuSources/test/perf/collperf/collperf.cpp +++ b/icuSources/test/perf/collperf/collperf.cpp @@ -1,14 +1,20 @@ -/******************************************************************** +/*********************************************************************** +* © 2016 and later: Unicode, Inc. and others. +* License & terms of use: http://www.unicode.org/copyright.html#License +* +*********************************************************************** +*********************************************************************** * COPYRIGHT: -* Copyright (C) 2001-2012 IBM, Inc. All Rights Reserved. +* Copyright (C) 2001-2016 IBM, Inc. All Rights Reserved. * -********************************************************************/ +***********************************************************************/ #include #include #include #include #include +#include "cmemory.h" #include "unicode/uperf.h" #include "uoptions.h" #include "unicode/coll.h" @@ -572,7 +578,7 @@ public: UOPTION_DEF("c_normal", 'n', UOPT_NO_ARG), // --normal UOPTION_DEF("c_strength", 's', UOPT_REQUIRES_ARG), // --strength <1-5> }; - int32_t opt_len = (sizeof(options)/sizeof(options[0])); + int32_t opt_len = UPRV_LENGTHOF(options); enum {i, r,f,a,c,l,n,s}; // The buffer between the option items' order and their references _remainingArgc = u_parseArgs(_remainingArgc, (char**)argv, opt_len, options);