mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-08 06:53:45 +00:00
ICU-3728 extend rbbi monkey test to cover following(), previous() funcs, line break fixes
X-SVN-Rev: 15373
This commit is contained in:
parent
a4627026a0
commit
33b949fbcd
2 changed files with 5 additions and 4 deletions
|
@ -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();
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue