commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Henri Yandell <flame...@gmail.com>
Subject Re: [Lang] StrTokenizer changes
Date Sat, 25 Dec 2004 21:02:43 GMT
On Thu, 23 Dec 2004 14:02:45 -0500, Inger, Matthew <Inger@synygy.com> wrote:
> I have made the following changes in the StrTokenizer class:
> 
> 2. There is now a "trimMatcher" which takes the functionality that the old
>     misnamed "ignoreMatcher" did.  However, the old version only trimmed
>     characters from the left side of the token.  The trim matcher will trim
> any
>     matching characters from both sides of the token until a non matching
> character
>     is encountered.  The default for the "trimMatcher" is not to trim any
> characters.

The default in the code seems to be for trim matcher to trim less than
32 ascii chars. Thus the three failing tests. So I've changed thr
default trimmer from a TrimMatcher to a NoMatcher.

Seems to work now.

Hen

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message