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
*/
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.