]> git.saurik.com Git - apple/icu.git/blobdiff - icuSources/test/intltest/rbbiapts.h
ICU-62135.0.1.tar.gz
[apple/icu.git] / icuSources / test / intltest / rbbiapts.h
index e31b1da190348e5a32a1652b675d4eebfb411ffa..13b1e29c552ac3a1c0ec38ee45c46c1e42934336 100644 (file)
@@ -1,6 +1,8 @@
+// © 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.
  ********************************************************************/
 /************************************************************************
@@ -53,6 +55,7 @@ public:
       **/
     void TestIteration(void);
 
+    void TestFilteredBreakIteratorBuilder(void);
 
     /**
      * Tests creating RuleBasedBreakIterator from rules strings.
@@ -64,10 +67,9 @@ public:
     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.
@@ -92,7 +94,7 @@ public:
      *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);
@@ -100,18 +102,6 @@ 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