diff options
author | Simon Cozens <simon@netthink.co.uk> | 2000-09-15 00:46:57 +0100 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2000-09-14 22:53:37 +0000 |
commit | b6b716fe3a82a1de9cf94c1d43c790a87a9ece17 (patch) | |
tree | a76850063fa3140a39ee9ba85685978b59e37547 /pod | |
parent | 40826f67d31c2606453337361c7fd592c5548941 (diff) | |
download | perl-b6b716fe3a82a1de9cf94c1d43c790a87a9ece17.tar.gz |
utf8.c apidoc
Message-ID: <20000914234657.A13953@deep-dark-truthful-mirror.perlhacker.org>
p4raw-id: //depot/perl@7087
Diffstat (limited to 'pod')
-rw-r--r-- | pod/perlapi.pod | 46 |
1 files changed, 28 insertions, 18 deletions
diff --git a/pod/perlapi.pod b/pod/perlapi.pod index ca2ba7c834..5d5bc5f4b9 100644 --- a/pod/perlapi.pod +++ b/pod/perlapi.pod @@ -2355,19 +2355,19 @@ false, defined or undefined. Does not handle 'get' magic. =for hackers Found in file sv.h -=item SvTYPE - -Returns the type of the SV. See C<svtype>. +=item svtype - svtype SvTYPE(SV* sv) +An enum of flags for Perl types. These are found in the file B<sv.h> +in the C<svtype> enum. Test these flags with the C<SvTYPE> macro. =for hackers Found in file sv.h -=item svtype +=item SvTYPE -An enum of flags for Perl types. These are found in the file B<sv.h> -in the C<svtype> enum. Test these flags with the C<SvTYPE> macro. +Returns the type of the SV. See C<svtype>. + + svtype SvTYPE(SV* sv) =for hackers Found in file sv.h @@ -3182,18 +3182,10 @@ Found in file handy.h =item U8 *s -Returns the character value of the first character in the string C<s> -which is assumed to be in UTF8 encoding; C<retlen> will be set to the -length, in bytes, of that character, and the pointer C<s> will be -advanced to the end of the character. - -If C<s> does not point to a well-formed UTF8 character, the behaviour -is dependent on the value of C<checking>: if this is true, it is -assumed that the caller will raise a warning, and this function will -set C<retlen> to C<-1> and return. If C<checking> is not true, an optional UTF8 -warning is produced. +Returns true if first C<len> bytes of the given string form valid a UTF8 +string, false otherwise. - utf8_to_uv U8 *s(I32 *retlen, I32 checking) + is_utf8_string U8 *s(STRLEN len) =for hackers Found in file utf8.c @@ -3210,6 +3202,24 @@ Returns zero on failure, setting C<len> to -1. =for hackers Found in file utf8.c +=item utf8_to_uv + +Returns the character value of the first character in the string C<s> +which is assumed to be in UTF8 encoding; C<retlen> will be set to the +length, in bytes, of that character, and the pointer C<s> will be +advanced to the end of the character. + +If C<s> does not point to a well-formed UTF8 character, the behaviour +is dependent on the value of C<checking>: if this is true, it is +assumed that the caller will raise a warning, and this function will +set C<retlen> to C<-1> and return. If C<checking> is not true, an optional UTF8 +warning is produced. + + U8* s utf8_to_uv(I32 *retlen, I32 checking) + +=for hackers +Found in file utf8.c + =item warn This is the XSUB-writer's interface to Perl's C<warn> function. Use this |