]> git.saurik.com Git - apple/icu.git/blobdiff - icuSources/test/perf/howExpensiveIs/howExpensiveIs.cpp
ICU-66108.tar.gz
[apple/icu.git] / icuSources / test / perf / howExpensiveIs / howExpensiveIs.cpp
index be59fc301088f4cf51f7669249f37e8aa066b462..fb16e4f672d16280cb7074f6a076e3616697311c 100644 (file)
@@ -1,12 +1,17 @@
 /*
- **********************************************************************
- * Copyright (c) 2011-2014,International Business Machines
+ ***********************************************************************
+ * © 2016 and later: Unicode, Inc. and others.
+ * License & terms of use: http://www.unicode.org/copyright.html#License
+ ***********************************************************************
+ ***********************************************************************
+ * Copyright (c) 2011-2016,International Business Machines
  * Corporation and others.  All Rights Reserved.
- **********************************************************************
+ ***********************************************************************
  */
 #include <stdio.h>
 #include <string.h>
 
+#include "cmemory.h"
 #include "sieve.h"
 #include "unicode/utimer.h"
 #include "udbgutil.h"
@@ -698,7 +703,7 @@ QuickTest(NumParseTestbeng,{    static UChar pattern[] = { 0x23 };    NumParseTe
 UDateFormat *DateFormatTest_fmt = NULL;
 UDate sometime = 100000000.0;
 UChar onekbuf[1024];
-const int32_t onekbuf_len = sizeof(onekbuf)/sizeof(onekbuf[0]);
+const int32_t onekbuf_len = UPRV_LENGTHOF(onekbuf);
 
 
 QuickTest(DateFormatTestBasic, \