X-Git-Url: https://git.saurik.com/apple/icu.git/blobdiff_plain/0f5d89e82340278ed3d7d50029f37cab2c41a57e..1a147d096ae81f4c8262f7bfc56bd19fc2dee932:/icuSources/test/cintltst/cbiapts.c diff --git a/icuSources/test/cintltst/cbiapts.c b/icuSources/test/cintltst/cbiapts.c index 451116a8..5efde690 100644 --- a/icuSources/test/cintltst/cbiapts.c +++ b/icuSources/test/cintltst/cbiapts.c @@ -792,15 +792,18 @@ static const int32_t heTestOffs_heFwd[] = { 1, 5, 7, 9, 12, 14, 19, /*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 */ @@ -1192,18 +1195,23 @@ static void TestBreakIteratorSuppressions(void) { #if APPLE_ADDITIONS #include -#include -#include "unicode/urbtok.h" -#include "cstring.h" #if U_PLATFORM_IS_DARWIN_BASED +#include #include #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 #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; @@ -2230,7 +2238,11 @@ static void handleTokResults(const char* testItem, const char* tokClass, const c 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;