]> git.saurik.com Git - apple/icu.git/blobdiff - icuSources/test/perf/ubrkperf/ubrkperf.cpp
ICU-531.30.tar.gz
[apple/icu.git] / icuSources / test / perf / ubrkperf / ubrkperf.cpp
index 7461affb88650a0e93f69cfe7a18770f1bdd18da..cd84edf922779cb52e5d4205ae70837a60ec10df 100644 (file)
@@ -1,6 +1,7 @@
 /********************************************************************
  * COPYRIGHT:
- * Copyright (C) 2001 IBM, Inc.   All Rights Reserved.
+ * Copyright (C) 2001-2011 International Business Machines Corporation
+ * and others. All Rights Reserved.
  *
  ********************************************************************/
 /********************************************************************************
 */
 
 #include "ubrkperf.h"
+#include "uoptions.h"
+#include <stdio.h>
 
 
 #if 0
-#ifdef U_DARWIN
+#if U_PLATFORM_IS_DARWIN_BASED
 #include <ApplicationServices/ApplicationServices.h>
 enum{
   kUCTextBreakAllMask = (kUCTextBreakClusterMask | kUCTextBreakWordMask | kUCTextBreakLineMask)
@@ -80,7 +83,7 @@ void doForwardTest() {
 
     elapsedTime = timeGetTime()-startTime;
   } else if(opt_mac) {
-#ifdef U_DARWIN
+#if U_PLATFORM_IS_DARWIN_BASED
     createMACBrkIt();
     UniChar* filePtr = text;
     OSStatus status = noErr;
@@ -211,7 +214,7 @@ m_fileLen_(0)
     m_file_ = getBuffer(m_fileLen_, status);
 
     if(status== U_ILLEGAL_ARGUMENT_ERROR){
-       fprintf(stderr, gUsageString, "normperf");
+       fprintf(stderr, gUsageString, "ubrkperf");
        fprintf(stderr, "\t-m or --mode        Required mode for breakiterator: char, word, line or sentence\n");
 
        return;