X-Git-Url: https://git.saurik.com/apple/icu.git/blobdiff_plain/b75a7d8f3b4adbae880cab104ce2c6a50eee4db2..e4f10fab0c078f399c9deef476d9c9b73b47dff8:/icuSources/test/intltest/rbbiapts.h?ds=sidebyside diff --git a/icuSources/test/intltest/rbbiapts.h b/icuSources/test/intltest/rbbiapts.h index 4dd9b4cb..e31b1da1 100644 --- a/icuSources/test/intltest/rbbiapts.h +++ b/icuSources/test/intltest/rbbiapts.h @@ -1,6 +1,6 @@ /******************************************************************** * COPYRIGHT: - * Copyright (c) 1999-2003, International Business Machines Corporation and + * Copyright (c) 1999-2011 International Business Machines Corporation and * others. All Rights Reserved. ********************************************************************/ /************************************************************************ @@ -63,6 +63,12 @@ public: void RoundtripRule(const char *dataFile); + /** + * Test creating RuleBasedBreakIterator from RBBIData. + **/ + + void TestCreateFromRBBIData(void); + /** * Tests grouping effect of 'single quotes' in rules. **/ @@ -71,7 +77,8 @@ public: /** * Tests word break status returns. */ - void TestWordStatus(); + void TestRuleStatus(); + void TestRuleStatusVec(); void TestBug2190(); @@ -79,6 +86,8 @@ public: void TestRegistration(); + void TestRefreshInputText(); + /** *Internal subroutines **/ @@ -91,6 +100,18 @@ public: }; +/** + * 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