NAME ^

src/pmc/perl6str.pmc - Perl 6 Strings

DESCRIPTION ^

Perl6Str extends String to provide Perl6-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. For the moment these are stub implementations to avoid throwing exceptions when we attempt to increment/decrement a string.

*/

    void increment() {
        /* do nothing */
    }


    void decrement() {
        /* do nothing */
    }
}

/*


parrot