| parrotcode: Perl String | |
| Contents | PMCs |

classes/perlstring.pmc - Perl String

PerlString extends String to provide Perl-specific string behaviour.
Note that the morph and set_pmc methods come from PerlScalar,
not from String.

STRING *get_repr()void set_integer_native(INTVAL value)PerlInt and sets its value to value.void set_number_native(FLOATVAL value)PerlNum and sets its value to value.void set_pmc(PMC *value)*value.void morph(INTVAL type)PerlString to the specified type.void add(PMC *value, PMC *dest)*value to the string and returns the result in *dest.void subtract(PMC *value, PMC *dest)*value from the string and returns the result in *dest.void multiply(PMC *value, PMC *dest)*value and returns the result in *dest.void divide(PMC *value, PMC *dest)*value and returns the result in *dest.void modulus(PMC *value, PMC *dest)mod *value and returns the result in *dest.void increment()void decrement()PMC *get_pmc_keyed(PMC *key)SELF[key].
|
|
|