This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Patch for SentenceBreakIterator


Hi,

While using gjdoc on the Classpath source we discovered that our
BreakIterator does not determine the end-of-sentence in the same way as
some other implementations. In particular a '.' followed by a '\n' is
not recognized as the end of a sentence (since '\n' is a control
character according to Unicode, not a space character). So this patch
makes us behave more like the standard JDK implementation.

2002-05-11  Mark Wielaard  <mark@klomp.org>

  * gnu/java/text/SentenceBreakIterator.java (next): Skip all java white
  space characters.
  (previous_internal): Likewise.

OK to commit?

I have also added a Mauve test for this case.

Cheers,

Mark

P.S. This seems like a save bug fix for 3.1.1. Do we already have a
policy for which patches may/should/can be backported to the branch?

Attachment: SentenceBreakIterator.diff
Description: Binary data


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]