X-Git-Url: https://git.saurik.com/apple/icu.git/blobdiff_plain/b75a7d8f3b4adbae880cab104ce2c6a50eee4db2..7393aa2fd2c40c89f12c2db881842a563afdb429:/icuSources/test/intltest/transtst.h diff --git a/icuSources/test/intltest/transtst.h b/icuSources/test/intltest/transtst.h index 79671998..423ed285 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-2008, 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, @@ -344,6 +344,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 +378,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 +412,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;