]> git.saurik.com Git - apple/icu.git/blobdiff - icuSources/test/perf/collperf/collperf.cpp
ICU-66108.tar.gz
[apple/icu.git] / icuSources / test / perf / collperf / collperf.cpp
index 5fda2fcc26c5c76084ce6e4355d188c1057d030c..137b31af3c07556bc76a9d0e1a922613179266e7 100644 (file)
@@ -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 <stdio.h>
 #include <stdlib.h>
 #include <locale.h>
 #include <limits.h>
 #include <string.h>
+#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 <on | OFF> 
                 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);