diff options
author | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2017-09-01 18:53:23 +0200 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2017-09-01 18:53:23 +0200 |
commit | b62fc1758f4ae8459e6d7e8386ca547274b4daa2 (patch) | |
tree | 7665bd379e46db015577fe6851b07b4fe2b6a1c9 /src/regenc.c | |
parent | ac077032be00edc79afc21983f50bc1cdf9af907 (diff) |
New upstream version 6.6.1upstream/6.6.1
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) { |