]> granicus.if.org Git - icu/commitdiff
ICU-13194 RBBI safe tables, C cleanups found while porting.
authorAndy Heninger <andy.heninger@gmail.com>
Thu, 29 Mar 2018 16:12:12 +0000 (16:12 +0000)
committerAndy Heninger <andy.heninger@gmail.com>
Thu, 29 Mar 2018 16:12:12 +0000 (16:12 +0000)
X-SVN-Rev: 41171

icu4c/source/common/rbbiscan.cpp
icu4c/source/common/unicode/rbbi.h

index 6b64969f125b9df63195934e8ccb48e2ec6cc56f..c82e1ea0315157938835063a48ee6c917cc298eb 100644 (file)
@@ -1122,22 +1122,6 @@ void RBBIRuleScanner::parse() {
         return;
     }
 
-    //
-    // If there were NO user specified safe reverse rules, set up the equivalent of ".*;"
-    //
-    if (fRB->fSafeRevTree == NULL) {
-        fRB->fSafeRevTree  = pushNewNode(RBBINode::opStar);
-        RBBINode  *operand = pushNewNode(RBBINode::setRef);
-        if (U_FAILURE(*fRB->fStatus)) {
-            return;
-        }
-        findSetFor(UnicodeString(TRUE, kAny, 3), operand);
-        fRB->fSafeRevTree->fLeftChild = operand;
-        operand->fParent              = fRB->fSafeRevTree;
-        fNodeStackPtr -= 2;
-    }
-
-
     //
     // Parsing of the input RBBI rules is complete.
     // We now have a parse tree for the rule expressions
index deba07a399db17c80f991d5304c7929ad03bcc1c..843d841c253a6606aeb154bd44f4dc55fa6d42b1 100644 (file)
@@ -638,16 +638,6 @@ private:
       */
     void init(UErrorCode &status);
 
-    /**
-     * Iterate backwards from an arbitrary position in the input text using the Safe Reverse rules.
-     * This locates a "Safe Position" from which the forward break rules
-     * will operate correctly. A Safe Position is not necessarily a boundary itself.
-     *
-     * @param fromPosition the position in the input text to begin the iteration.
-     * @internal
-     */
-    int32_t handlePrevious(int32_t fromPosition);
-
     /**
      * Iterate backwards from an arbitrary position in the input text using the
      * synthesized Safe Reverse rules.