summaryrefslogtreecommitdiff
path: root/enc/unicode.c
diff options
context:
space:
mode:
Diffstat (limited to 'enc/unicode.c')
-rw-r--r--enc/unicode.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/enc/unicode.c b/enc/unicode.c
index 99dc6dc0d3..b0ecc1bc50 100644
--- a/enc/unicode.c
+++ b/enc/unicode.c
@@ -140,8 +140,18 @@ code3_equal(const OnigCodePoint *x, const OnigCodePoint *y)
return 1;
}
+#define UP ONIGENC_CASE_UPCASE
+#define DOWN ONIGENC_CASE_DOWNCASE
+#define TITLE ONIGENC_CASE_TITLECASE
+#define FOLD ONIGENC_CASE_FOLD
+
#include "enc/unicode/casefold.h"
+#undef UP
+#undef DOWN
+#undef TITLE
+#undef FOLD
+
#include "enc/unicode/name2ctype.h"
#define CODE_RANGES_NUM numberof(CodeRanges)