commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Henri Yandell <>
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

> 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.


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

View raw message