summaryrefslogtreecommitdiff
path: root/pod/perlapi.pod
diff options
context:
space:
mode:
authorJohn Peacock <jpeacock@rowman.com>2002-02-24 11:40:07 -0500
committerJarkko Hietaniemi <jhi@iki.fi>2002-02-24 23:33:33 +0000
commit6050d10e6008e3d6e86de76c85d93bf5c06336aa (patch)
tree22abf8721e11d3eb865e04fca86b40c8137fae35 /pod/perlapi.pod
parent4a623e436d71abaaa4d1ebda0aec183af7a6eb53 (diff)
downloadperl-6050d10e6008e3d6e86de76c85d93bf5c06336aa.tar.gz
Re: Copying PV only with possible UTF-8 characters
Message-ID: <3C795DB7.40105@rowman.com> p4raw-id: //depot/perl@14857
Diffstat (limited to 'pod/perlapi.pod')
-rw-r--r--pod/perlapi.pod55
1 files changed, 48 insertions, 7 deletions
diff --git a/pod/perlapi.pod b/pod/perlapi.pod
index af5bf36a24..487a882089 100644
--- a/pod/perlapi.pod
+++ b/pod/perlapi.pod
@@ -646,6 +646,32 @@ Found in file perl.c
=back
+=head1 Functions in file pp_pack.c
+
+
+=over 8
+
+=item pack_cat
+
+The engine implementing pack() Perl function.
+
+ void pack_cat(SV *cat, char *pat, char *patend, SV **beglist, SV **endlist, SV ***next_in_list, U32 flags)
+
+=for hackers
+Found in file pp_pack.c
+
+=item unpack_str
+
+The engine implementing unpack() Perl function.
+
+ I32 unpack_str(char *pat, char *patend, char *s, char *strbeg, char *strend, char **new_s, I32 ocnt, U32 flags)
+
+=for hackers
+Found in file pp_pack.c
+
+
+=back
+
=head1 Global Variables
=over 8
@@ -2869,21 +2895,21 @@ Like C<SvPV_nolen>, but converts sv to utf8 first if necessary.
=for hackers
Found in file sv.h
-=item SvPVX
+=item SvPVx
-Returns a pointer to the physical string in the SV. The SV must contain a
-string.
+A version of C<SvPV> which guarantees to evaluate sv only once.
- char* SvPVX(SV* sv)
+ char* SvPVx(SV* sv, STRLEN len)
=for hackers
Found in file sv.h
-=item SvPVx
+=item SvPVX
-A version of C<SvPV> which guarantees to evaluate sv only once.
+Returns a pointer to the physical string in the SV. The SV must contain a
+string.
- char* SvPVx(SV* sv, STRLEN len)
+ char* SvPVX(SV* sv)
=for hackers
Found in file sv.h
@@ -3483,6 +3509,21 @@ settings.
=for hackers
Found in file sv.c
+=item sv_copypv
+
+Copies a stringified representation of the source SV into the
+destination SV. Automatically performs any necessary mg_get and
+coercion of numeric values into strings. Guaranteed to preserve
+UTF-8 flag even from overloaded objects. Similar in nature to
+sv_2pv[_flags] but operates directly on an SV instead of just the
+string. Mostly uses sv_2pv_flags to do its work, except when that
+would lose the UTF-8'ness of the PV.
+
+ void sv_copypv(SV* dsv, SV* ssv)
+
+=for hackers
+Found in file sv.c
+
=item sv_dec
Auto-decrement of the value in the SV, doing string to numeric conversion