]> granicus.if.org Git - onig/commitdiff
define ONIGENC_IS_UNICODE_ENCODING()
authorK.Kosako <kosako@sofnec.co.jp>
Thu, 6 Jul 2017 07:06:30 +0000 (16:06 +0900)
committerK.Kosako <kosako@sofnec.co.jp>
Thu, 6 Jul 2017 07:06:30 +0000 (16:06 +0900)
src/regenc.h

index 897c704047ba8c4511029bd4790cd051e1bdc6e0..abc26bea9c0e71a536078bd9b2fc9da1a4aec552 100644 (file)
@@ -239,5 +239,7 @@ ONIG_EXTERN const unsigned short OnigEncAsciiCtypeTable[];
  (ONIGENC_IS_ASCII_CODE_CTYPE(code, ONIGENC_CTYPE_UPPER) ||\
   ONIGENC_IS_ASCII_CODE_CTYPE(code, ONIGENC_CTYPE_LOWER))
    
+#define ONIGENC_IS_UNICODE_ENCODING(enc) \
+  ((enc)->is_code_ctype == onigenc_unicode_is_code_ctype)
 
 #endif /* REGENC_H */