summaryrefslogtreecommitdiff
path: root/utf8.h
diff options
context:
space:
mode:
authorKarl Williamson <public@khwilliamson.com>2011-05-03 10:12:00 -0600
committerJesse Vincent <jesse@bestpractical.com>2011-05-03 17:14:06 -0400
commit36bb2ab64fa2ef022d7870082c0dcc6db902c86e (patch)
treebfee85e71c3f52ac7076a8148880d5a3a62d693c /utf8.h
parent7bee57f6d73fe07d73dd9b4a538e4ffd60c7eed8 (diff)
downloadperl-36bb2ab64fa2ef022d7870082c0dcc6db902c86e.tar.gz
utf8.c: Add _flags version of to_utf8_fold()
And also to_uni_fold(). The flag allows retrieving either simple or full folds. The interface is subject to change, so these are marked experimental and their names begin with underscore. The old versions are turned into macros calling the new versions with the correct extra parameter.
Diffstat (limited to 'utf8.h')
-rw-r--r--utf8.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/utf8.h b/utf8.h
index a08ba04b60..c40fb5883e 100644
--- a/utf8.h
+++ b/utf8.h
@@ -16,6 +16,9 @@
# define USE_UTF8_IN_NAMES (PL_hints & HINT_UTF8)
#endif
+#define to_uni_fold(c, p, lenp) _to_uni_fold_flags(c, p, lenp, 1)
+#define to_utf8_fold(c, p, lenp) _to_utf8_fold_flags(c, p, lenp, 1)
+
/* Source backward compatibility. */
#define uvuni_to_utf8(d, uv) uvuni_to_utf8_flags(d, uv, 0)
#define is_utf8_string_loc(s, len, ep) is_utf8_string_loclen(s, len, ep, 0)