summaryrefslogtreecommitdiff
path: root/embedvar.h
diff options
context:
space:
mode:
authorKarl Williamson <public@khwilliamson.com>2012-11-09 10:18:17 -0700
committerKarl Williamson <public@khwilliamson.com>2012-11-11 10:11:34 -0700
commitbde9e88d4f9dd5fc838744a75cfc6b9c1a2cfd82 (patch)
treeffef94c2d69ab6ec5b65299dc97712b5b5669c81 /embedvar.h
parent7baadcd09acc8f332e8235cc586cedcaa3f4616c (diff)
downloadperl-bde9e88d4f9dd5fc838744a75cfc6b9c1a2cfd82.tar.gz
Validate above-Latin1 characters in \N{} aliases
This completes the process of allowing users to define their own aliases for \N{} in any language they choose. Names have some validation applied so that they can't, for example, begin with something that is a digit in some Unicode script. Tests and documentation are included in this patch. The loop in toke.c that does the validation for user-supplied translators is revamped, and the messages that are output when there is an error are fixed to work with UTF-8.
Diffstat (limited to 'embedvar.h')
-rw-r--r--embedvar.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/embedvar.h b/embedvar.h
index 65c2ff1617..6efd53aef4 100644
--- a/embedvar.h
+++ b/embedvar.h
@@ -358,6 +358,8 @@
#define PL_utf8_alnum (vTHX->Iutf8_alnum)
#define PL_utf8_alpha (vTHX->Iutf8_alpha)
#define PL_utf8_blank (vTHX->Iutf8_blank)
+#define PL_utf8_charname_begin (vTHX->Iutf8_charname_begin)
+#define PL_utf8_charname_continue (vTHX->Iutf8_charname_continue)
#define PL_utf8_digit (vTHX->Iutf8_digit)
#define PL_utf8_foldable (vTHX->Iutf8_foldable)
#define PL_utf8_foldclosures (vTHX->Iutf8_foldclosures)