mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-07 06:25:30 +00:00
ICU-13194 RBBI safe tables, C cleanups found while porting.
X-SVN-Rev: 41171
This commit is contained in:
parent
ed5b77c406
commit
6cdf52d3da
2 changed files with 0 additions and 26 deletions
|
@ -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
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Add table
Reference in a new issue