summaryrefslogtreecommitdiff
path: root/utf8.h
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2001-12-13 14:19:28 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2001-12-13 14:19:28 +0000
commite7ae6809ba5905bb2ce7c09e88c6e2bdb5c913af (patch)
treecc4b0bc31e5af4e0e6348a9c18f42da46b937b5a /utf8.h
parent503ec68fa54cd074101e4004bdfe3124adc2a0df (diff)
downloadperl-e7ae6809ba5905bb2ce7c09e88c6e2bdb5c913af.tar.gz
Unadorned numbers evil.
p4raw-id: //depot/perl@13672
Diffstat (limited to 'utf8.h')
-rw-r--r--utf8.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/utf8.h b/utf8.h
index 01c6199f93..1c2243e2da 100644
--- a/utf8.h
+++ b/utf8.h
@@ -135,7 +135,12 @@ END_EXTERN_C
#define isIDFIRST_lazy(p) isIDFIRST_lazy_if(p,1)
#define isALNUM_lazy(p) isALNUM_lazy_if(p,1)
-#define UTF8_MAXLEN 13 /* how wide can a single UTF8 encoded character become */
+/* how wide can a single UTF8 encoded character become */
+#define UTF8_MAXLEN 13
+/* how wide a character can become when upper/lowercased */
+#define UTF8_MAXLEN_UCLC (UTF8_MAXLEN*2)
+/* how wide a character can become when casefolded */
+#define UTF8_MAXLEN_FOLD (UTF8_MAXLEN*3)
#define IN_BYTES (PL_curcop->op_private & HINT_BYTES)
#define DO_UTF8(sv) (SvUTF8(sv) && !IN_BYTES)