]> git.saurik.com Git - apple/icu.git/blobdiff - icuSources/test/perf/ubrkperf/ubrkperf.cpp
ICU-57132.0.1.tar.gz
[apple/icu.git] / icuSources / test / perf / ubrkperf / ubrkperf.cpp
index 9a090ee5facc1731734ae4e72638da0055d29d54..eb2cde7d831beebde30362a6a2891d2e806e4391 100644 (file)
@@ -1,6 +1,6 @@
 /********************************************************************
  * COPYRIGHT:
 /********************************************************************
  * COPYRIGHT:
- * Copyright (C) 2001-2008 International Business Machines Corporation
+ * Copyright (C) 2001-2016 International Business Machines Corporation
  * and others. All Rights Reserved.
  *
  ********************************************************************/
  * and others. All Rights Reserved.
  *
  ********************************************************************/
 *********************************************************************************
 */
 
 *********************************************************************************
 */
 
+#include "cmemory.h"
 #include "ubrkperf.h"
 #include "uoptions.h"
 #include <stdio.h>
 
 
 #if 0
 #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)
 #include <ApplicationServices/ApplicationServices.h>
 enum{
   kUCTextBreakAllMask = (kUCTextBreakClusterMask | kUCTextBreakWordMask | kUCTextBreakLineMask)
@@ -83,7 +84,7 @@ void doForwardTest() {
 
     elapsedTime = timeGetTime()-startTime;
   } else if(opt_mac) {
 
     elapsedTime = timeGetTime()-startTime;
   } else if(opt_mac) {
-#ifdef U_DARWIN
+#if U_PLATFORM_IS_DARWIN_BASED
     createMACBrkIt();
     UniChar* filePtr = text;
     OSStatus status = noErr;
     createMACBrkIt();
     UniChar* filePtr = text;
     OSStatus status = noErr;
@@ -192,7 +193,7 @@ m_file_(NULL),
 m_fileLen_(0)
 {
 
 m_fileLen_(0)
 {
 
-    _remainingArgc = u_parseArgs(_remainingArgc, (char**)argv, (int32_t)(sizeof(options)/sizeof(options[0])), options);
+    _remainingArgc = u_parseArgs(_remainingArgc, (char**)argv, UPRV_LENGTHOF(options), options);
 
 
     if(options[0].doesOccur) {
 
 
     if(options[0].doesOccur) {