ICU-13194 RBBI safe tables, C cleanups found while porting.

X-SVN-Rev: 41171
This commit is contained in:
Andy Heninger 2018-03-29 16:12:12 +00:00
parent ed5b77c406
commit 6cdf52d3da
2 changed files with 0 additions and 26 deletions

View 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

View 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.