+// © 2016 and later: Unicode, Inc. and others.
+// License & terms of use: http://www.unicode.org/copyright.html
/********************************************************************
* COPYRIGHT:
- * Copyright (c) 1997-2010, International Business Machines Corporation and
+ * Copyright (c) 1997-2016, International Business Machines Corporation and
* others. All Rights Reserved.
********************************************************************/
#ifndef _TESTMESSAGEFORMAT
**/
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 ,char* errMsg);
+ UnicodeString expected, const char* errMsg);
/**
* Internal method to create a MessageFormat object with passed args
*/
void TestRBNF();
- //
+ void TestApostropheMode();
+
+ void TestCompatibleApostrophe();
+
/**
* ------------ API tests ----------
* These routines test various API functionality.
void testAdopt(void);
void TestTurkishCasing(void);
void testAutoQuoteApostrophe(void);
-
- /* Provide better code coverage */
- void testCoverage(void);
+ void testCoverage();
+ void testGetFormatNames();
+ void TestTrimArgumentName();
+ void TestSelectOrdinal();
+ void TestDecimals();
+ void TestArgIsPrefixOfAnother();
+ void TestMessageFormatNumberSkeleton();
private:
+ UnicodeString GetPatternAndSkipSyntax(const MessagePattern& pattern);
};
#endif /* #if !UCONFIG_NO_FORMATTING */