On Fri, 5 Sep 2003, Peter Gibbs wrote:

> I am working on adding support for additional chartypes to Parrot, plus
> the capability for run-time registration of same. To this end, I would like to:
> 
> 1) Add CHARTYPE* as a parameter to the <chartype>_is_digit/_get_digit functions
> 2) Create a new struct chartype_digit_map_t to contain mappings from code values
>       to digit values
> 3) Add a pointer to the above struct to the CHARTYPE structure

Go for it. There is the possibility that identifying a digit is more
involved than we might otherwise want for some chartypes, however--the
first thing that pops to mind is the fun that ensues in the
Chinese-derived writing systems where the characters for the various
numbers may have non-numeric meanings in some circumstances. For those
(and for some other functions, such as "what is a word character", and
"what is a word boundary") requires something more complex than a plain 
lookup table.

                                        Dan

Reply via email to