/*static const int32_t heTestOffs_enRev[] = { 22, 19, 17, 14, 12, 9, 7, 5, 1, 0 };*/
static const int32_t heTestOffs_heRev[] = { 19, 14, 12, 9, 7, 5, 1, 0 };
-/* Finnish line break tailoring, for cldrbug 3029 */
+/* Finnish line break tailoring, for cldrbug 3029.
+ * As of ICU 63, Finnish tailoring moved to root, Finnish and English should be the same. */
static const UChar fiTest[] = { /* 00 */ 0x0020, 0x002D, 0x0031, 0x0032, 0x0020,
/* 05 */ 0x0061, 0x002D, 0x006B, 0x0020,
/* 09 */ 0x0061, 0x0300, 0x2010, 0x006B, 0x0020,
/* 14 */ 0x0061, 0x0020, 0x002D, 0x006B, 0x0020,
/* 19 */ 0x0061, 0x0300, 0x0020, 0x2010, 0x006B, 0x0020, 0 };
-static const int32_t fiTestOffs_enFwd[] = { 1, 5, 7, 9, 12, 14, 16, 17, 19, 22, 23, 25 };
+//static const int32_t fiTestOffs_enFwd[] = { 1, 5, 7, 9, 12, 14, 16, 17, 19, 22, 23, 25 };
+static const int32_t fiTestOffs_enFwd[] = { 1, 5, 7, 9, 12, 14, 16, 19, 22, 25 };
static const int32_t fiTestOffs_fiFwd[] = { 1, 5, 7, 9, 12, 14, 16, 19, 22, 25 };
-static const int32_t fiTestOffs_enRev[] = { 23, 22, 19, 17, 16, 14, 12, 9, 7, 5, 1, 0 };
+//static const int32_t fiTestOffs_enRev[] = { 23, 22, 19, 17, 16, 14, 12, 9, 7, 5, 1, 0 };
+static const int32_t fiTestOffs_enRev[] = { 22, 19, 16, 14, 12, 9, 7, 5, 1, 0 };
static const int32_t fiTestOffs_fiRev[] = { 22, 19, 16, 14, 12, 9, 7, 5, 1, 0 };
/* Khmer dictionary-based work break, for ICU ticket #8329 */
#if APPLE_ADDITIONS
#include <stdio.h>
-#include <unistd.h>
-#include "unicode/urbtok.h"
-#include "cstring.h"
#if U_PLATFORM_IS_DARWIN_BASED
+#include <unistd.h>
#include <mach/mach_time.h>
#define GET_START() mach_absolute_time()
#define GET_DURATION(start, info) ((mach_absolute_time() - start) * info.numer)/info.denom
-#else
+#elif !U_PLATFORM_HAS_WIN32_API
+#include <unistd.h>
#include "putilimp.h"
#define GET_START() (uint64_t)uprv_getUTCtime()
#define GET_DURATION(start, info) ((uint64_t)uprv_getUTCtime() - start)
+#else
+#include "putilimp.h"
+#define GET_START() (unsigned long long)uprv_getUTCtime()
+#define GET_DURATION(start, info) ((unsigned long long)uprv_getUTCtime() - start)
#endif
+#include "unicode/urbtok.h"
+#include "cstring.h"
typedef struct {
RuleBasedTokenRange token;
static void TestRuleBasedTokenizer(void) {
const TokRulesAndTests* ruleTypePtr;
+#if !U_PLATFORM_HAS_WIN32_API
uint64_t start, duration;
+#else
+ unsigned long long start, duration;
+#endif
#if U_PLATFORM_IS_DARWIN_BASED
mach_timebase_info_data_t info;