summaryrefslogtreecommitdiff
path: root/libunicode.h
diff options
context:
space:
mode:
authorFabrice Bellard <fabrice@bellard.org>2024-01-08 18:42:29 +0100
committerFabrice Bellard <fabrice@bellard.org>2024-01-08 18:42:29 +0100
commitaf308614a8b89e80a6e6a3f270292ef724931d1e (patch)
treef9f0bf6510bdccc486f1010543386d10abe93874 /libunicode.h
parentaac24640b13825b550d3e6dbce0a3f9ac8baf577 (diff)
downloadquickjs-af308614a8b89e80a6e6a3f270292ef724931d1e.tar.gz
quickjs-af308614a8b89e80a6e6a3f270292ef724931d1e.zip
fixed regexp case insensitive flag
Diffstat (limited to 'libunicode.h')
-rw-r--r--libunicode.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/libunicode.h b/libunicode.h
index cfa600a..8abacb0 100644
--- a/libunicode.h
+++ b/libunicode.h
@@ -41,6 +41,7 @@ typedef enum {
} UnicodeNormalizationEnum;
int lre_case_conv(uint32_t *res, uint32_t c, int conv_type);
+int lre_canonicalize(uint32_t c, BOOL is_unicode);
LRE_BOOL lre_is_cased(uint32_t c);
LRE_BOOL lre_is_case_ignorable(uint32_t c);
@@ -101,6 +102,8 @@ int cr_op(CharRange *cr, const uint32_t *a_pt, int a_len,
int cr_invert(CharRange *cr);
+int cr_regexp_canonicalize(CharRange *cr, BOOL is_unicode);
+
#ifdef CONFIG_ALL_UNICODE
LRE_BOOL lre_is_id_start(uint32_t c);