mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-14 17:24:01 +00:00
ICU-9099 Fix break iterarator problem that was causing Finnish line break tests to fail.
X-SVN-Rev: 31479
This commit is contained in:
parent
f6cd9b7461
commit
2be586c40c
3 changed files with 6 additions and 5 deletions
|
@ -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.
|
||||
|
|
|
@ -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]);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue