ICU-4157 Unicode 4.1 RBBI rule updates + required implementation fixes

X-SVN-Rev: 17387
This commit is contained in:
Andy Heninger 2005-03-25 00:56:00 +00:00
parent 17617fbf7f
commit 6fbe41a6ca

View File

@ -2694,7 +2694,7 @@ int32_t RBBILineMonkey::next(int32_t startPos) {
// LB 10 QU SP* x OP
if (fSP->contains(prevChar) && fOP->contains(thisChar)) {
if (fOP->contains(thisChar)) {
// Scan backwards from prevChar to see if it is preceded by QU CM* SP*
int tPos = prevPos;
while (tPos>0 && fSP->contains(fText->char32At(tPos))) {
@ -2819,7 +2819,7 @@ int32_t RBBILineMonkey::next(int32_t startPos) {
pos = fCharBI->preceding(numEndIdx);
thisChar = fText->char32At(pos);
while (fCM->contains(thisChar)) {
pos = fCharBI->preceding(pos);
pos = fCharBI->preceding(pos); // TODO: just get previous codepoint. Don't use BI.
thisChar = fText->char32At(pos);
}
}