ICU-9099 Fix break iterarator problem that was causing Finnish line break tests to fail.

X-SVN-Rev: 31479
This commit is contained in:
Andy Heninger 2012-02-22 01:51:25 +00:00
parent f6cd9b7461
commit 2be586c40c
3 changed files with 6 additions and 5 deletions

View file

@ -1125,6 +1125,7 @@ public int getRuleStatusVec(int[] fillInArray) {
lookaheadStatus = 0;
// TODO: make a standalone hard break in a rule work.
if (lookAheadHardBreak) {
fText.setIndex(result);
return result;
}
// Look-ahead completed, but other rules may match further. Continue on.

View file

@ -1,7 +1,7 @@
/*
* Created on May 5, 2004
*
* Copyright (C) 2004-2010 International Business Machines Corporation and others.
* Copyright (C) 2004-2012 International Business Machines Corporation and others.
* All Rights Reserved.
*
*/
@ -446,7 +446,7 @@ void executeTest(TestParams t) {
break;
}
// Check that there were we didn't miss an expected break between the last one
// Check that we didn't miss an expected break between the last one
// and this one. (UVector returns zeros for index out of bounds.)
for (i=prevBP-1; i>bp; i--) {
if (t.expectedBreaks[i] != 0) {
@ -481,7 +481,7 @@ void executeTest(TestParams t) {
// Verify that there were no missed breaks prior to the last one found
for (i=prevBP-1; i>=0; i--) {
if (t.expectedBreaks[i] != 0) {
errln("Forward Itertion, break expected, but not found. Pos=" + i +
errln("Reverse Itertion, break expected, but not found. Pos=" + i +
" File line,col= " + t.srcLine[i] + ", " + t.srcCol[i]);
}
}

View file

@ -799,6 +799,6 @@ What is the proper use of the abbreviation pp.? •Yes, I am definatelly 12" tal
<locale fi>
<line>
#<data>•abc •- •def •abc •-def •abc- •def •abc-•def•</data> # With ASCII hyphen
#<data>•abc •‐ •def •abc •def •abc •def •abc•def•</data> # With Unicode u2010 hyphen
<data>•abc •- •def •abc •-def •abc- •def •abc-•def•</data> # With ASCII hyphen
<data>•abc •‐ •def •abc •def •abc •def •abc•def•</data> # With Unicode u2010 hyphen