X-Git-Url: https://git.saurik.com/apple/icu.git/blobdiff_plain/b75a7d8f3b4adbae880cab104ce2c6a50eee4db2..57a6839dcb3bba09e8228b822b290604668416fe:/icuSources/test/intltest/transtst.h?ds=sidebyside diff --git a/icuSources/test/intltest/transtst.h b/icuSources/test/intltest/transtst.h index 79671998..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 @@ -25,7 +25,7 @@ class TransliteratorTest : public IntlTest { public: TransliteratorTest(); - virtual ~TransliteratorTest() {} + virtual ~TransliteratorTest(); private: void runIndexedTest(int32_t index, UBool exec, const char* &name, @@ -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;