summaryrefslogtreecommitdiff
path: root/dump.c
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2001-11-19 18:02:14 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2001-11-19 18:02:14 +0000
commite6b2e7559f25acecc651c2f0d304b65728937d82 (patch)
tree292a13b3c6a5768ddf1913101655b3792addd284 /dump.c
parentff270d3ac16fa8d51fc9a0dc2660901c9ee1e54f (diff)
downloadperl-e6b2e7559f25acecc651c2f0d304b65728937d82.tar.gz
The _uni_display should not be in dump.c since they
are used under normal operation (S_not_a_number()). p4raw-id: //depot/perl@13099
Diffstat (limited to 'dump.c')
-rw-r--r--dump.c29
1 files changed, 0 insertions, 29 deletions
diff --git a/dump.c b/dump.c
index 0ac6b0ce1d..863b006177 100644
--- a/dump.c
+++ b/dump.c
@@ -143,35 +143,6 @@ Perl_pv_display(pTHX_ SV *dsv, char *pv, STRLEN cur, STRLEN len, STRLEN pvlim)
}
char *
-Perl_pv_uni_display(pTHX_ SV *dsv, U8 *spv, STRLEN len, STRLEN pvlim, UV flags)
-{
- int truncated = 0;
- char *s, *e;
-
- sv_setpvn(dsv, "", 0);
- for (s = (char *)spv, e = s + len; s < e; s += UTF8SKIP(s)) {
- UV u;
- if (pvlim && SvCUR(dsv) >= pvlim) {
- truncated++;
- break;
- }
- u = utf8_to_uvchr((U8*)s, 0);
- Perl_sv_catpvf(aTHX_ dsv, "\\x{%"UVxf"}", u);
- }
- if (truncated)
- sv_catpvn(dsv, "...", 3);
-
- return SvPVX(dsv);
-}
-
-char *
-Perl_sv_uni_display(pTHX_ SV *dsv, SV *ssv, STRLEN pvlim, UV flags)
-{
- return Perl_pv_uni_display(aTHX_ dsv, (U8*)SvPVX(ssv), SvCUR(ssv),
- pvlim, flags);
-}
-
-char *
Perl_sv_peek(pTHX_ SV *sv)
{
SV *t = sv_newmortal();