X-Git-Url: https://git.saurik.com/apple/icu.git/blobdiff_plain/b75a7d8f3b4adbae880cab104ce2c6a50eee4db2..374ca955a76ecab1204ca8bfa63ff9238d998416:/icuSources/test/perf/charperf/charperf.cpp diff --git a/icuSources/test/perf/charperf/charperf.cpp b/icuSources/test/perf/charperf/charperf.cpp index 7ced35de..bde84695 100644 --- a/icuSources/test/perf/charperf/charperf.cpp +++ b/icuSources/test/perf/charperf/charperf.cpp @@ -1,6 +1,6 @@ /******************************************************************** * COPYRIGHT: - * Copyright (C) 2002 IBM, Inc. All Rights Reserved. + * Copyright (C) 2002-2003 IBM, Inc. All Rights Reserved. * ********************************************************************/ /***************************************************************************** @@ -68,8 +68,15 @@ CharPerformanceTest::CharPerformanceTest(int32_t argc, const char *argv[], (int32_t)(sizeof(options)/sizeof(options[0])), options); } MIN_ = 0; - MAX_ = 0xffff; - + if (sizeof(wchar_t) > 2) { + // for stdlibs like glibc that supports 32 bits wchar + // we test for the whole unicode character set by default + MAX_ = 0x10ffff; + } + else { + MAX_ = 0xffff; + } + printf("MAX_ size will be 0x%x\n", MAX_); if (options[MIN_OPTION_].doesOccur) { MIN_ = atoi(options[MIN_OPTION_].value); }