summaryrefslogtreecommitdiff
path: root/pod
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2001-06-10 18:37:57 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2001-06-10 18:37:57 +0000
commitdd5dc04f542db5aa619bf5c0cc2e371a87aef44b (patch)
tree295eb7bb6a0e0c5829d18b025c0ddd3ca807019b /pod
parent7b57b0ead8ab6b3f08be8b4ded2364d260db25a1 (diff)
downloadperl-dd5dc04f542db5aa619bf5c0cc2e371a87aef44b.tar.gz
Move the grok_number and its lieutenant grok_numeric_radix
from sv.c statics to util.c and public. p4raw-id: //depot/perl@10505
Diffstat (limited to 'pod')
-rw-r--r--pod/perlapi.pod36
1 files changed, 29 insertions, 7 deletions
diff --git a/pod/perlapi.pod b/pod/perlapi.pod
index 5f0a584e58..84e2dc721f 100644
--- a/pod/perlapi.pod
+++ b/pod/perlapi.pod
@@ -519,6 +519,28 @@ respectively.
=for hackers
Found in file op.h
+=item grok_number
+
+Recognise (or not) a number. The type of the number is returned
+(0 if unrecognised), otherwise it is a bit-ORed combination of
+IS_NUMBER_IN_UV, IS_NUMBER_GREATER_THAN_UV_MAX, IS_NUMBER_NOT_INT,
+IS_NUMBER_NEG, IS_NUMBER_INFINITY (defined in perl.h). If the value
+of the number can fit an in UV, it is returned in the *valuep.
+
+ int grok_number(const char *pv, STRLEN len, UV *valuep)
+
+=for hackers
+Found in file util.c
+
+=item grok_numeric_radix
+
+Scan and skip for a numeric decimal separator (radix).
+
+ bool grok_numeric_radix(const char **sp, const char *send)
+
+=for hackers
+Found in file util.c
+
=item GvSV
Return the SV from the GV.
@@ -2408,19 +2430,19 @@ false, defined or undefined. Does not handle 'get' magic.
=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
-=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