commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Henri Yandell <bay...@generationjava.com>
Subject Re: CharRange UNSET ?
Date Sun, 29 Sep 2002 07:15:35 GMT


On Fri, 27 Sep 2002, Steve Downey wrote:

> OK the problem now is (and this is in no way a holdup, it's in the class of
> "Doc it hurts when I do this") UNSET isn't a signalling value. 0 is a
> legitimate character. Now, you would have to construct a range of, e.g.,
> "Z-\u0000", which is silly. But that range wouldn't be a range. Reverse
> ranges are broken, anyway, though.

Yeah. I agree though that this is something to fix when reverse ranges are
introduced.

>
> This is odd, though:
>
>         if("-".equals(str)) {
>             range = new CharRange('_');
>             set.add(range);
>             return;
>         }
>
> Shouldn't that be new CharRange('-')?

Fixed. I blame gremlins. I added a test to notice this.

One thing to decide at some point is what "a-" means. Currently this is an
unsupported syntax.

Hen



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


Mime
View raw message