+// © 2016 and later: Unicode, Inc. and others.
+// License & terms of use: http://www.unicode.org/copyright.html
/********************************************************************
* COPYRIGHT:
- * Copyright (c) 1999-2011 International Business Machines Corporation and
+ * Copyright (c) 1999-2016 International Business Machines Corporation and
* others. All Rights Reserved.
********************************************************************/
/************************************************************************
**/
void TestIteration(void);
+ void TestFilteredBreakIteratorBuilder(void);
/**
* Tests creating RuleBasedBreakIterator from rules strings.
void RoundtripRule(const char *dataFile);
/**
- * Test creating RuleBasedBreakIterator from RBBIData.
+ * Test getting and using binary (compiled) rules.
**/
-
- void TestCreateFromRBBIData(void);
+ void TestGetBinaryRules(void);
/**
* Tests grouping effect of 'single quotes' in rules.
*Internal subroutines
**/
/* Internal subroutine used by TestIsBoundary() */
- void doBoundaryTest(RuleBasedBreakIterator& bi, UnicodeString& text, int32_t *boundaries);
+ void doBoundaryTest(BreakIterator& bi, UnicodeString& text, int32_t *boundaries);
/*Internal subroutine used for comparision of expected and acquired results */
void doTest(UnicodeString& testString, int32_t start, int32_t gotoffset, int32_t expectedOffset, const char* expected);
};
-/**
- * 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