/********************************************************************
* COPYRIGHT:
- * Copyright (c) 1999-2003, International Business Machines Corporation and
+ * Copyright (c) 1999-2004,2008 International Business Machines Corporation and
* others. All Rights Reserved.
********************************************************************/
/************************************************************************
void RoundtripRule(const char *dataFile);
+ /**
+ * Test creating RuleBasedBreakIterator from RBBIData.
+ **/
+
+ void TestCreateFromRBBIData(void);
+
/**
* Tests grouping effect of 'single quotes' in rules.
**/
/**
* Tests word break status returns.
*/
- void TestWordStatus();
+ void TestRuleStatus();
+ void TestRuleStatusVec();
void TestBug2190();
};
+/**
+ * Special class to enable testing of protected functions in RuleBasedBreakIterator
+ */
+class RBBIWithProtectedFunctions: public RuleBasedBreakIterator {
+public:
+ enum EDontAdopt {
+ kDontAdopt
+ };
+ RBBIWithProtectedFunctions(RBBIDataHeader* data, UErrorCode &status);
+ RBBIWithProtectedFunctions(const RBBIDataHeader* data, enum EDontAdopt dontAdopt, UErrorCode &status);
+};
+
#endif /* #if !UCONFIG_NO_BREAK_ITERATION */
#endif