| parrotcode: Lua String | |
| Contents | Language Implementations | Lua |

pmc/luastring.pmc - Lua String

LuaString extends LuaAny to provide a class with the behaviour of the Lua String type.

void init()PMC *new_from_string(STRING *rep, INTVAL flags) .const .LuaString s = "Hello World!"
void morph(INTVAL type)void mark()PMC *clone()STRING *get_string()STRING *name()void set_integer_native (INTVAL value)void set_number_native(FLOATVAL value)VOID set_string_native(STRING *value)string.PMC *neg (PMC *dest)void i_neg ()INTVAL elements ()void freeze(visit_info *info)void thaw(visit_info *info)
PMC *add (PMC *value, PMC *dest)void i_add (PMC *value)PMC *subtract (PMC *value, PMC *dest)void i_subtract (PMC *value)PMC *multiply (PMC *value, PMC *dest)void i_multiply (PMC *value)PMC *divide (PMC *value, PMC *dest)void i_divide (PMC *value)PMC *modulus (PMC *value, PMC *dest)void i_modulus (PMC *value)PMC *pow (PMC *value, PMC *dest)void i_pow (PMC *value)INTVAL is_equal (PMC *value)value; returns true if they match.INTVAL cmp (PMC *value)value; returns -1 if the string is smaller, 0 if they are equal, and 1 if value is smaller.value is a LuaString.PMC *concatenate(PMC *value, PMC *dest)void i_concatenate (PMC *value)

Francois Perrad.
Klaas-Jan Stol.
|
|
|