diff options
author | Karl Williamson <public@khwilliamson.com> | 2011-05-03 10:12:00 -0600 |
---|---|---|
committer | Jesse Vincent <jesse@bestpractical.com> | 2011-05-03 17:14:06 -0400 |
commit | 36bb2ab64fa2ef022d7870082c0dcc6db902c86e (patch) | |
tree | bfee85e71c3f52ac7076a8148880d5a3a62d693c /utf8.h | |
parent | 7bee57f6d73fe07d73dd9b4a538e4ffd60c7eed8 (diff) | |
download | perl-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.h | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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) |