cp-tools-discuss
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Cp-tools-discuss] Re: Gjdoc now runs on full classpath tree


From: Julian Scheid
Subject: Re: [Cp-tools-discuss] Re: Gjdoc now runs on full classpath tree
Date: Fri, 10 May 2002 05:03:38 +0200
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.0rc1) Gecko/20020417

Mark Wielaard wrote:
>>(BTW Javadoc 1.4 has some new clever approach that doesn't
>>use BreakIterator but some hand-crafted logic to deal with
>>nifty things like "J. R. Tolkien" -- but BreakIterator
>>should work quiet well for most cases.)
>
>
> Maybe it will be a good thing to implement this since there are clearly
> some buggy BreakIterators out there :{

Right, even the Sun 1.3.1 BreakIterator doesn't work - sometimes it
includes the period at the end of the sentence, sometimes not, though
I was able to work around that.

I've added the following stub to gnu.classpath.tools.gjdoc.DocImpl.java
If anyone feels like it, he can implement it. I currently don't ;)
        

   /**
    *  Looks for an end-of-sentence marker in <code>text</code>,
    *  starting at <code>startIndex</code> and stopping at
    *  <code>endIndex</code>.
    *
    *  @param text  the text to be searched
    *  @param startIndex  index in <code>text</code> at which to start
    *  @param endIndex  index in <code>text</code> at which to stop
    *
    *  @returns the index of the character following the end-of-sentence
    *    marker, <code>endIndex</code> if no end-of-sentence
    *    marker could be found, or -1 if not implemented.
    */
   private static int findEndOfSentence(char[] text, int startIndex, int 
endIndex) {

      return -1;
   }




reply via email to

[Prev in Thread] Current Thread [Next in Thread]