]> git.saurik.com Git - apple/icu.git/blobdiff - icuSources/test/perf/ustrperf/stringperf.h
ICU-66108.tar.gz
[apple/icu.git] / icuSources / test / perf / ustrperf / stringperf.h
index 84d6493a405c6a3c5e04bf03da9fd6b1d23556f9..5392ee7fdeed2b9addd26ae1cd28054793be0ec2 100644 (file)
@@ -1,19 +1,26 @@
 /*
-**********************************************************************
-* Copyright (c) 2002-2006, International Business Machines
+***********************************************************************
+* © 2016 and later: Unicode, Inc. and others.
+* License & terms of use: http://www.unicode.org/copyright.html#License
+***********************************************************************
+***********************************************************************
+* Copyright (c) 2002-2016, International Business Machines
 * Corporation and others.  All Rights Reserved.
-**********************************************************************
+***********************************************************************
 */
 #ifndef _STRINGPERF_H
 #define _STRINGPERF_H
 
-#include <string>
-
+#include "cmemory.h"
 #include "unicode/utypes.h"
 #include "unicode/unistr.h"
 
 #include "unicode/uperf.h"
 
+#include <string.h>
+#include <stdio.h>
+#include <stdlib.h>
+
 typedef std::wstring stlstring;        
 
 /* Define all constants for test case operations */
@@ -240,7 +247,7 @@ private:
 
         wlines_=new WLine[numLines_];
         wchar_t ws[100];
-        int32_t wcap = sizeof(ws) / sizeof(*ws);
+        int32_t wcap = UPRV_LENGTHOF(ws);
         int32_t wl;
         wchar_t* wcs;