[ragel-users] Re: Matching multibyte or wide-chars
Adrian Thurston
thurs... at cs.queensu.ca
Fri Apr 11 20:23:08 UTC 2008
I think it would be great to distribute these ragel definitions with
ragel as a library. Maybe as wchar/<locale>-def.rl or something.
-Adrian
Rak Rok wrote:
>> Sorry that's the only option at this time. Perhaps someone has already
>> defined character classes that they're willing to share.
>
> I've been poring through the iswalpha code in glibc and it doesn't
> seem like it will be too difficult to define the character classes.
> It boils down to a bunch of rather large table lookups. I'm looking
> into building it for Ragel. Will be happy to share the code with you
> guys if you're interested in adding it to the set of defined character
> classes. I'm thinking of calling them wdigit, walpha, walnum, etc.
> Is this something you'd be interested in having?
>
> -rr-
>
> >
>
More information about the ragel-users
mailing list