From b3cc984a3c0d1e49b3bf933669836ecd4d0c5b9b Mon Sep 17 00:00:00 2001 From: "K.Kosako" Date: Fri, 27 Nov 2020 10:12:06 +0900 Subject: [PATCH] define CASE_FOLD_IS_ASCII_ONLY() and CASE_FOLD_IS_NOT_ASCII_ONLY() --- src/regenc.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/regenc.h b/src/regenc.h index 5033f2fc..d0b447db 100644 --- a/src/regenc.h +++ b/src/regenc.h @@ -142,6 +142,10 @@ struct PropertyNameCtype { #define ENC_GET_SKIP_OFFSET(enc) \ (((enc)->flag & ENC_FLAG_SKIP_OFFSET_MASK)>>2) +#define CASE_FOLD_IS_ASCII_ONLY(flag) \ + (((flag) & ONIGENC_CASE_FOLD_ASCII_ONLY) != 0) +#define CASE_FOLD_IS_NOT_ASCII_ONLY(flag) \ + (((flag) & ONIGENC_CASE_FOLD_ASCII_ONLY) == 0) /* for encoding system implementation (internal) */ extern int onigenc_end(void);