X-Git-Url: https://git.saurik.com/apple/icu.git/blobdiff_plain/374ca955a76ecab1204ca8bfa63ff9238d998416..340931cb2e044a2141d11567dd0f782524e32994:/icuSources/test/intltest/transtst.h diff --git a/icuSources/test/intltest/transtst.h b/icuSources/test/intltest/transtst.h index a331a843..0ac46e36 100644 --- a/icuSources/test/intltest/transtst.h +++ b/icuSources/test/intltest/transtst.h @@ -1,6 +1,8 @@ +// © 2016 and later: Unicode, Inc. and others. +// License & terms of use: http://www.unicode.org/copyright.html /* ********************************************************************** -* Copyright (C) 1999-2003, International Business Machines +* Copyright (C) 1999-2011, International Business Machines * Corporation and others. All Rights Reserved. ********************************************************************** * Date Name Description @@ -334,9 +336,11 @@ private: void TestAnyX(void); + void TestAny(void); + void TestSourceTargetSet(void); - void TestRuleWhitespace(void); + void TestPatternWhiteSpace(void); void TestAllCodepoints(void); @@ -344,6 +348,34 @@ private: void TestAlternateSyntax(void); + void TestRuleStripping(void); + + void TestHalfwidthFullwidth(void); + + void TestThai(void); + + /** + * Tests the multiple-pass syntax + */ + void TestBeginEnd(void); + + /** + * Tests that toRules() works right with the multiple-pass syntax + */ + void TestBeginEndToRules(void); + + /** + * Tests the registerAlias() function + */ + void TestRegisterAlias(void); + + /** + * Test for rdar://problem/61817095 (and maybe eventually other Hans-Hant errors) + * Apple-only + * ICU4C only + */ + void TestHansHant(void); + //====================================================================== // Support methods //====================================================================== @@ -357,6 +389,12 @@ private: const UnicodeString& expectedResult, UTransPosition *pos=0); + void expect(const UnicodeString& id, + const UnicodeString& rules, + const UnicodeString& source, + const UnicodeString& expectedResult, + UTransPosition *pos=0); + void expect(const Transliterator& t, const UnicodeString& source, const UnicodeString& expectedResult, @@ -385,6 +423,8 @@ private: void CheckIncrementalAux(const Transliterator* t, const UnicodeString& input); + void reportParseError(const UnicodeString& message, const UParseError& parseError, const UErrorCode& status); + const UnicodeString DESERET_DEE; const UnicodeString DESERET_dee;