]> git.saurik.com Git - apple/icu.git/blobdiff - icuSources/test/perf/charperf/charperf.cpp
ICU-6.2.4.tar.gz
[apple/icu.git] / icuSources / test / perf / charperf / charperf.cpp
index 7ced35deab4317c87bcf641e9039aec13e61c2c8..bde84695473f84116d8669beda6bd51c12509367 100644 (file)
@@ -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);
        }