diff options
Diffstat (limited to 'src/regenc.c')
-rw-r--r-- | src/regenc.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/regenc.c b/src/regenc.c index 554a622..97b5052 100644 --- a/src/regenc.c +++ b/src/regenc.c @@ -841,6 +841,16 @@ onigenc_minimum_property_name_to_ctype(OnigEncoding enc, UChar* p, UChar* end) } extern int +onigenc_is_mbc_word_ascii(OnigEncoding enc, UChar* s, const UChar* end) +{ + OnigCodePoint code = ONIGENC_MBC_TO_CODE(enc, s, end); + + if (code > 127) return 0; + + return ONIGENC_IS_ASCII_CODE_WORD(code); +} + +extern int onigenc_mb2_is_code_ctype(OnigEncoding enc, OnigCodePoint code, unsigned int ctype) { |