-/********************************************************************
+/***********************************************************************
+ * © 2016 and later: Unicode, Inc. and others.
+ * License & terms of use: http://www.unicode.org/copyright.html#License
+ *
+ ***********************************************************************
+ ***********************************************************************
* COPYRIGHT:
- * Copyright (C) 2001 IBM, Inc. All Rights Reserved.
+ * Copyright (C) 2001-2012 IBM, Inc. All Rights Reserved.
*
- ********************************************************************/
+ ***********************************************************************/
/********************************************************************************
*
* File ubrkperf.cpp
#include <unicode/brkiter.h>
-#ifdef WIN32
+#if U_PLATFORM_HAS_WIN32_API
#include <windows.h>
#else
//
-#ifdef U_DARWIN
+#if U_PLATFORM_IS_DARWIN_BASED
#include <ApplicationServices/ApplicationServices.h>
enum{
kUCTextBreakAllMask = (kUCTextBreakClusterMask | kUCTextBreakWordMask | kUCTextBreakLineMask)
elapsedTime = timeGetTime()-startTime;
} else if(opt_mac) {
-#ifdef U_DARWIN
+#if U_PLATFORM_IS_DARWIN_BASED
createMACBrkIt();
UniChar* filePtr = text;
OSStatus status = noErr;
// Convert the bytes from the temp array to a Unicode char.
i = 0;
uint32_t cp;
- UTF8_NEXT_CHAR_UNSAFE(bytes, i, cp);
+ U8_NEXT_UNSAFE(bytes, i, cp);
c = (UChar)cp;
if (cp >= 0x10000) {