potion
0.2
|
strings are immutable UTF-8, the ID is incremental and they may be garbage collected. More...
#include <potion.h>
Public Member Functions | |
#define | PN_STR_LEN(x) ((struct PNString *)(x))->len |
static PN | potion_str_length (Potion *P, PN cl, PN self) |
static PN | potion_str_eval (Potion *P, PN cl, PN self) |
static PN | potion_str_number (Potion *P, PN cl, PN self) |
static PN | potion_str_string (Potion *P, PN cl, PN self) |
static PN | potion_str_clone (Potion *P, PN cl, PN self) |
static PN | potion_str_print (Potion *P, PN cl, PN self) |
static PN | potion_str_slice (Potion *P, PN cl, PN self, PN start, PN end) |
static PN | potion_str_bytes (Potion *P, PN cl, PN self) |
PN | potion_str_add (Potion *P, PN cl, PN self, PN x) |
static PN | potion_str_at (Potion *P, PN cl, PN self, PN index) |
static PN | potion_str_cmp (Potion *P, PN cl, PN self, PN str) |
Data Fields | |
PN_OBJECT_HEADER | |
PNType vt; PNUniq uniq. More... | |
PN_SIZE | len |
char | chars [] |
strings are immutable UTF-8, the ID is incremental and they may be garbage collected.
(non-volatile)
"cmp" a string to argument str, casted to a string
str | PN string compared to |