diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 2000-11-18 22:50:28 +0000 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2000-11-18 22:50:28 +0000 |
commit | b76347f2eb34c85a0a38543b2f57ca474fedab4d (patch) | |
tree | 31cc323c41bcb1ac42ff13659898c6589d43cf19 /perlapi.c | |
parent | 5a2dd41731da4a994683b80fc75b362161912f47 (diff) | |
download | perl-b76347f2eb34c85a0a38543b2f57ca474fedab4d.tar.gz |
Introduce Perl_utf8_length(). Use it.
p4raw-id: //depot/perl@7744
Diffstat (limited to 'perlapi.c')
-rw-r--r-- | perlapi.c | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -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) |