ICU-3728 extend rbbi monkey test to cover following(), previous() funcs, line break fixes

X-SVN-Rev: 15373
This commit is contained in:
Andy Heninger 2004-05-18 18:23:22 +00:00
parent a4627026a0
commit 33b949fbcd
2 changed files with 5 additions and 4 deletions

View file

@ -569,9 +569,12 @@ int32_t RuleBasedBreakIterator::preceding(int32_t offset) {
// move backwards one codepoint to prepare for moving forwards to a
// safe point.
// this handles offset being between a supplementary character
// TODO: would it be better to just check for being in the middle of a surrogate pair,
// rather than adjusting the position unconditionally?
// (Change would interact with safe rules.)
fText->previous32();
handleNext(fData->fSafeFwdTable);
int32_t result = /*previous(); */ fText->getIndex();
int32_t result = fText->getIndex();
while (result >= offset) {
result = previous();
}

View file

@ -388,6 +388,4 @@ $QU $CM* $SP+;
$CL $CM* $SP+;
# LB 18
$HY $CM* $NU;
$IS $CM* $CL;
$SY $CM* $CL;
$CM* $PRcm? ($OPcm | $HYcm)? $NU;