summaryrefslogtreecommitdiff
path: root/sv.h
diff options
context:
space:
mode:
authorFather Chrysostomos <sprout@cpan.org>2011-10-08 22:23:50 -0700
committerFather Chrysostomos <sprout@cpan.org>2011-10-09 23:14:07 -0700
commit89fc9e2a93d8f1efaca9c57135763a5342ecdd36 (patch)
tree612732e86d7d1ba8b5b5cef07f338d4e5aea8c4c /sv.h
parentb2ef759e149da82c9e8229884417d223e485c9fb (diff)
downloadperl-89fc9e2a93d8f1efaca9c57135763a5342ecdd36.tar.gz
Update docs for XS AUTOLOAD
This mentions the UTF8 flag and moves the discussion to perlapi, where it belongs, IMHO.
Diffstat (limited to 'sv.h')
-rw-r--r--sv.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/sv.h b/sv.h
index c056423a77..46e53acc29 100644
--- a/sv.h
+++ b/sv.h
@@ -685,6 +685,11 @@ Only use when you are sure SvNOK is true. See also C<SvNV()>.
Returns a pointer to the physical string in the SV. The SV must contain a
string.
+During autoloading, if the AUTOLOAD routine is an XSUB, C<SvPVX(cv)>
+returns the name of the subroutine for which AUTOLOAD was invoked.
+Likewise, C<SvCUR(cv)> returns the length, and C<SvUTF8(cv)> returns true
+if the name is in UTF8.
+
=for apidoc Am|STRLEN|SvCUR|SV* sv
Returns the length of the string which is in the SV. See C<SvLEN>.