X-Git-Url: https://git.saurik.com/apple/icu.git/blobdiff_plain/374ca955a76ecab1204ca8bfa63ff9238d998416..e4f10fab0c078f399c9deef476d9c9b73b47dff8:/icuSources/test/intltest/transtst.h diff --git a/icuSources/test/intltest/transtst.h b/icuSources/test/intltest/transtst.h index a331a843..0b1f9a10 100644 --- a/icuSources/test/intltest/transtst.h +++ b/icuSources/test/intltest/transtst.h @@ -1,6 +1,6 @@ /* ********************************************************************** -* 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 +334,11 @@ private: void TestAnyX(void); + void TestAny(void); + void TestSourceTargetSet(void); - void TestRuleWhitespace(void); + void TestPatternWhiteSpace(void); void TestAllCodepoints(void); @@ -344,6 +346,27 @@ 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); + //====================================================================== // Support methods //====================================================================== @@ -357,6 +380,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 +414,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;