X-Git-Url: https://git.saurik.com/apple/icu.git/blobdiff_plain/73c04bcfe1096173b00431f0cdc742894b15eef0..ef6cf650f4a75c3f97de06b51fa104f2069b9ea2:/icuSources/test/perf/ustrperf/stringperf.h diff --git a/icuSources/test/perf/ustrperf/stringperf.h b/icuSources/test/perf/ustrperf/stringperf.h index 84d6493a..8dc316f3 100644 --- a/icuSources/test/perf/ustrperf/stringperf.h +++ b/icuSources/test/perf/ustrperf/stringperf.h @@ -1,19 +1,22 @@ /* ********************************************************************** -* Copyright (c) 2002-2006, International Business Machines +* Copyright (c) 2002-2016, International Business Machines * Corporation and others. All Rights Reserved. ********************************************************************** */ #ifndef _STRINGPERF_H #define _STRINGPERF_H -#include - +#include "cmemory.h" #include "unicode/utypes.h" #include "unicode/unistr.h" #include "unicode/uperf.h" +#include +#include +#include + typedef std::wstring stlstring; /* Define all constants for test case operations */ @@ -240,7 +243,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;