diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 2001-12-13 14:19:28 +0000 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2001-12-13 14:19:28 +0000 |
commit | e7ae6809ba5905bb2ce7c09e88c6e2bdb5c913af (patch) | |
tree | cc4b0bc31e5af4e0e6348a9c18f42da46b937b5a /utf8.h | |
parent | 503ec68fa54cd074101e4004bdfe3124adc2a0df (diff) | |
download | perl-e7ae6809ba5905bb2ce7c09e88c6e2bdb5c913af.tar.gz |
Unadorned numbers evil.
p4raw-id: //depot/perl@13672
Diffstat (limited to 'utf8.h')
-rw-r--r-- | utf8.h | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -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) |