commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Inger, Matthew" <>
Subject [Lang] StrTokenizer changes
Date Thu, 23 Dec 2004 19:02:45 GMT
I have made the following changes in the StrTokenizer class:

1. The "ignoredMatcher", now performs as it's name suggests, in that
    it will indicate any characters which are to be completely ignored.  Any
    characters which match will be omitted from any token.  This is a good
    way to ignore control characters, tabs, etc....  The default is to not
    ignore any characters.

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
    matching characters from both sides of the token until a non matching
    is encountered.  The default for the "trimMatcher" is not to trim any

3. Some minor other bug fixes.

Since StrTokenizer was not part of the 2.0 release, i feel it's safe to
change the
meaning of the "ignoreMatcher" to more closely mirror it's name.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message