/*
**********************************************************************
-* Copyright (C) 1999-2003, International Business Machines
+* Copyright (C) 1999-2011, International Business Machines
* Corporation and others. All Rights Reserved.
**********************************************************************
* Date Name Description
public:
TransliteratorTest();
- virtual ~TransliteratorTest() {}
+ virtual ~TransliteratorTest();
private:
void runIndexedTest(int32_t index, UBool exec, const char* &name,
void TestAnyX(void);
+ void TestAny(void);
+
void TestSourceTargetSet(void);
- void TestRuleWhitespace(void);
+ void TestPatternWhiteSpace(void);
void TestAllCodepoints(void);
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
//======================================================================
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,
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;