NAME ^

src/pmc/perl6str.pmc - Perl 6 Strings

DESCRIPTION ^

Perl6Str extends String to provide Perl 6-specific string numifying behavior.

Methods ^

INTVAL get_integer()
Returns the value of a Perl 6 string as an integer. For now we just call get_number() and return that as an integer.
FLOATVAL get_number()
Returns the value of a Perl 6 string as a number. Currently this routine understands the "0x", "0d", "0o", and "0b" radix forms, as well as exponents and underscores between pairs of digits.
void increment()
void decrement()
Increment/decrement the string magically according to S03 rules.These implementations are very ASCII oriented. They assume that the alphabet is contiguous and that there aren't any other characters on either side of the letters or digits that return true for isalpha() or isdigit() respectively.


parrot