X-Git-Url: https://git.saurik.com/apple/icu.git/blobdiff_plain/73c04bcfe1096173b00431f0cdc742894b15eef0..b331163bffd790ced0e88b73f44f86d49ccc48a5:/icuSources/test/intltest/winnmtst.cpp?ds=inline diff --git a/icuSources/test/intltest/winnmtst.cpp b/icuSources/test/intltest/winnmtst.cpp index dfbf200b..9a548e19 100644 --- a/icuSources/test/intltest/winnmtst.cpp +++ b/icuSources/test/intltest/winnmtst.cpp @@ -1,6 +1,6 @@ /* ******************************************************************************** -* Copyright (C) 2005-2006, International Business Machines +* Copyright (C) 2005-2011, International Business Machines * Corporation and others. All Rights Reserved. ******************************************************************************** * @@ -11,7 +11,7 @@ #include "unicode/utypes.h" -#ifdef U_WINDOWS +#if U_PLATFORM_USES_ONLY_WIN32_API #if !UCONFIG_NO_FORMATTING @@ -246,7 +246,7 @@ static void testLocale(const char *localeID, int32_t lcid, NumberFormat *wnf, UB UnicodeString locale(localeID); log->errln("Double format error for locale " + locale + - ": got " + udBuffer + " expected " + wdBuffer); + ": got " + udBuffer + " expected " + wdBuffer); } wnf->format(i32, u3Buffer); @@ -254,7 +254,7 @@ static void testLocale(const char *localeID, int32_t lcid, NumberFormat *wnf, UB UnicodeString locale(localeID); log->errln("int32_t format error for locale " + locale + - ": got " + u3Buffer + " expected " + w3Buffer); + ": got " + u3Buffer + " expected " + w3Buffer); } wnf->format(i64, u6Buffer); @@ -262,7 +262,7 @@ static void testLocale(const char *localeID, int32_t lcid, NumberFormat *wnf, UB UnicodeString locale(localeID); log->errln("int64_t format error for locale " + locale + - ": got " + u6Buffer + " expected " + w6Buffer); + ": got " + u6Buffer + " expected " + w6Buffer); } } } @@ -276,10 +276,10 @@ void Win32NumberTest::testLocales(TestLog *log) UErrorCode status = U_ZERO_ERROR; char localeID[128]; - // NULL localeID means ICU didn't recognize the lcid - if (lcidRecords[i].localeID == NULL) { - continue; - } + // NULL localeID means ICU didn't recognize the lcid + if (lcidRecords[i].localeID == NULL) { + continue; + } strcpy(localeID, lcidRecords[i].localeID); @@ -320,4 +320,4 @@ void Win32NumberTest::testLocales(TestLog *log) #endif /* #if !UCONFIG_NO_FORMATTING */ -#endif /* #ifdef U_WINDOWS */ +#endif /* U_PLATFORM_USES_ONLY_WIN32_API */