How about for creating and manipulating character classes?
Apologies in advance if I've simply overlooked something.
Pm
RSN or when Dan's string stuff is merged.
> How about for creating and manipulating character classes?
There is an implementation of bit sets in imcc/sets.c. The old rx code
has some bitmap stuff in src/rx.c. But that's broken WRT memory leaks.
It uses a bitmap for chars < 256 and a linear string for anything bigger
- suboptimal.
So it's probably best to to create a BitSet PMC. That could use a bitset
for the "normal" range of the charset and an additional hash for other
values, which is searched only if it's there.
> Apologies in advance if I've simply overlooked something.
No problem, the source tree is huge.
> Pm
leo
Not yet. I've got some basic code in the new string branch to provide
a few checks (whitespace, alpha, number, and punctuation) but that's
it for now.
>How about for creating and manipulating character classes?
Nope, not yet. Character classes do need to be addressed, though,
since they're... interesting to handle.
--
Dan
--------------------------------------it's like this-------------------
Dan Sugalski even samurai
d...@sidhe.org have teddy bears and even
teddy bears get drunk