summaryrefslogtreecommitdiff
path: root/perlapi.c
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2000-11-18 22:50:28 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2000-11-18 22:50:28 +0000
commitb76347f2eb34c85a0a38543b2f57ca474fedab4d (patch)
tree31cc323c41bcb1ac42ff13659898c6589d43cf19 /perlapi.c
parent5a2dd41731da4a994683b80fc75b362161912f47 (diff)
downloadperl-b76347f2eb34c85a0a38543b2f57ca474fedab4d.tar.gz
Introduce Perl_utf8_length(). Use it.
p4raw-id: //depot/perl@7744
Diffstat (limited to 'perlapi.c')
-rw-r--r--perlapi.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/perlapi.c b/perlapi.c
index a9dd2f070d..a2e73e4bd0 100644
--- a/perlapi.c
+++ b/perlapi.c
@@ -3350,6 +3350,13 @@ Perl_utf16_to_utf8_reversed(pTHXo_ U8* p, U8 *d, I32 bytelen, I32 *newlen)
return ((CPerlObj*)pPerl)->Perl_utf16_to_utf8_reversed(p, d, bytelen, newlen);
}
+#undef Perl_utf8_length
+STRLEN
+Perl_utf8_length(pTHXo_ U8* s, U8 *e)
+{
+ return ((CPerlObj*)pPerl)->Perl_utf8_length(s, e);
+}
+
#undef Perl_utf8_distance
I32
Perl_utf8_distance(pTHXo_ U8 *a, U8 *b)