The current chartype struct contains an is_digit function. Do we want to add
is_alpha, is_space, etc., or will a single is_ctype function, with an enum
parameter, suffice?

A single function would simplify the addition of new character classes, but
at a (small?) cost in speed. It would also keep the chartype struct smaller,
but there is unlikely to be enough of those to make any significant
difference.

Since the current prototype includes the chartype, existing functions
(eg ICU u_is<xxx>) could not be called without a wrapper function anyway,
so a single function would mean one wrapper with a switch statement,
versus individual wrappers for each class.

I prefer the single function approach, so that is what I will start
implementing if there are no timeous objections.

Regards
Peter Gibbs
EmKel Systems

Reply via email to