X-Git-Url: https://git.saurik.com/apple/icu.git/blobdiff_plain/b75a7d8f3b4adbae880cab104ce2c6a50eee4db2..2be6500137966bba13903b24204a44804f9e133a:/icuSources/test/intltest/tmsgfmt.h diff --git a/icuSources/test/intltest/tmsgfmt.h b/icuSources/test/intltest/tmsgfmt.h index 30c94435..63dbf77b 100644 --- a/icuSources/test/intltest/tmsgfmt.h +++ b/icuSources/test/intltest/tmsgfmt.h @@ -1,10 +1,8 @@ /******************************************************************** * COPYRIGHT: - * Copyright (c) 1997-2003, International Business Machines Corporation and + * Copyright (c) 1997-2012, International Business Machines Corporation and * others. All Rights Reserved. ********************************************************************/ - - #ifndef _TESTMESSAGEFORMAT #define _TESTMESSAGEFORMAT @@ -14,6 +12,7 @@ #include "unicode/unistr.h" #include "unicode/fmtable.h" +#include "unicode/msgfmt.h" #include "intltest.h" /** @@ -56,6 +55,30 @@ public: * tests MesageFormat functionality with a format including a ChoiceFormat **/ void testMsgFormatChoice(/* char* par */); + /** + * tests MesageFormat functionality with a PluralFormat. + **/ + void testMsgFormatPlural(/* char* par */); + + /** + * tests MessageFormat functionality with a SelectFormat. + **/ + void testMsgFormatSelect(/* char* par */); + + void testApostropheInPluralAndSelect(); + + /** + * Internal method to format a MessageFormat object with passed args + **/ + void internalFormat(MessageFormat* msgFmt , + Formattable* args , int32_t numOfArgs , + UnicodeString expected, const char* errMsg); + + /** + * Internal method to create a MessageFormat object with passed args + **/ + MessageFormat* internalCreate( + UnicodeString pattern ,Locale locale , UErrorCode& err, char* errMsg); /** * Verify that MessageFormat accomodates more than 10 arguments @@ -63,7 +86,15 @@ public: */ void TestUnlimitedArgsAndSubformats(); - // + /** + * Test RBNF extensions to MessageFormat. + */ + void TestRBNF(); + + void TestApostropheMode(); + + void TestCompatibleApostrophe(); + /** * ------------ API tests ---------- * These routines test various API functionality. @@ -80,8 +111,15 @@ public: void testFormat(void); void testParse(void); void testAdopt(void); + void TestTurkishCasing(void); + void testAutoQuoteApostrophe(void); + void testCoverage(); + void testGetFormatNames(); + void TestTrimArgumentName(); + void TestSelectOrdinal(); private: + UnicodeString GetPatternAndSkipSyntax(const MessagePattern& pattern); }; #endif /* #if !UCONFIG_NO_FORMATTING */