summaryrefslogtreecommitdiff
path: root/handy.h
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2016-12-14 13:02:06 -0700
committerKarl Williamson <khw@cpan.org>2016-12-23 22:36:33 -0700
commit567b353c280f568f67de0e8d8b78d7abc7c931f7 (patch)
tree3ecaa2d443d7b2f2dc7329e56a5880647567f3bf /handy.h
parentd4f48b064914f271411fb517d698b2d59bbbb6e3 (diff)
downloadperl-567b353c280f568f67de0e8d8b78d7abc7c931f7.tar.gz
For character case changing, create macros and use
This creates several macros that future commits will use to provide a layer between the caller and the function.
Diffstat (limited to 'handy.h')
-rw-r--r--handy.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/handy.h b/handy.h
index 0d94ff178f..4c7a82ff70 100644
--- a/handy.h
+++ b/handy.h
@@ -1880,6 +1880,12 @@ _generic_utf8_safe(classnum, p, e, _is_utf8_FOO_with_len(classnum, p, e))
#define toTITLE_utf8(p,s,l) to_utf8_title(p,s,l)
#define toUPPER_utf8(p,s,l) to_utf8_upper(p,s,l)
+/* For internal core use only, subject to change */
+#define _toFOLD_utf8_flags(p,s,l,f) _to_utf8_fold_flags (p,s,l,f)
+#define _toLOWER_utf8_flags(p,s,l,f) _to_utf8_lower_flags(p,s,l,f)
+#define _toTITLE_utf8_flags(p,s,l,f) _to_utf8_title_flags(p,s,l,f)
+#define _toUPPER_utf8_flags(p,s,l,f) _to_utf8_upper_flags(p,s,l,f)
+
/* For internal core Perl use only: the base macros for defining macros like
* isALPHA_LC_utf8. These are like _generic_utf8, but if the first code point
* in 'p' is within the 0-255 range, it uses locale rules from the passed-in