On 4/3/18 9:23 PM, yangyajing wrote:
> I don't think it should check for '[:',  but it should check if the
> pattern is defined in the charclass even if the pattern does not have a
> multibyte character.

I'll add something so that the code only falls back to the single-byte
matcher if there is a potentially (since these things can always be fooled)
unrecognized character class. The single-byte code only handles a small
set of character class names, and you can check for those quickly. Much
faster than calling wctype for everything -- just assume that anything
that doesn't have one of the single-byte char class names is a locale-
specific character class.

Chet

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    c...@case.edu    http://tiswww.cwru.edu/~chet/

Reply via email to