summaryrefslogtreecommitdiff
path: root/utf8.c
diff options
context:
space:
mode:
authorKarl Williamson <public@khwilliamson.com>2012-12-20 09:29:36 -0700
committerKarl Williamson <public@khwilliamson.com>2012-12-22 11:11:33 -0700
commit7dbf68d2396b16bcbba2780133a8c8aa3b172884 (patch)
tree5ad51efe02db18c07b01f97e2f4d8dcc52923db6 /utf8.c
parent5ac65bffc18d1c86e719feb45600a976e397ac76 (diff)
downloadperl-7dbf68d2396b16bcbba2780133a8c8aa3b172884.tar.gz
Create internal _is_utf8_mark()
This is so we can deprecate non-core use of the existing one in a future commit. XS coders should be using the macros in handy.h instead of calling such functions directly. A future commit will deprecate all of them, but first the core uses of this one must change so they don't generate deprecation messages. I will not have a chance to look for some time, but I suspect that most uses of this function in the core should be changed to use something else, but in the meantime, the non-core uses can be deprecated.
Diffstat (limited to 'utf8.c')
-rw-r--r--utf8.c13
1 files changed, 12 insertions, 1 deletions
diff --git a/utf8.c b/utf8.c
index b6ca4876d8..930b148419 100644
--- a/utf8.c
+++ b/utf8.c
@@ -2288,13 +2288,24 @@ Perl_is_utf8_xdigit(pTHX_ const U8 *p)
}
bool
+Perl__is_utf8_mark(pTHX_ const U8 *p)
+{
+ dVAR;
+
+ PERL_ARGS_ASSERT__IS_UTF8_MARK;
+
+ return is_utf8_common(p, &PL_utf8_mark, "IsM");
+}
+
+
+bool
Perl_is_utf8_mark(pTHX_ const U8 *p)
{
dVAR;
PERL_ARGS_ASSERT_IS_UTF8_MARK;
- return is_utf8_common(p, &PL_utf8_mark, "IsM");
+ return _is_utf8_mark(p);
}
/*