28 #ifndef LEGATO_DYNAMICSTRING_H 29 #define LEGATO_DYNAMICSTRING_H 39 #define LE_DYNAMICSTRING_VTABLE(THIS_TYPE) \ 40 LE_STRING_VTABLE(THIS_TYPE) \ 42 uint32_t (*getCapacity)(THIS_TYPE* str); \ 43 leResult (*setCapacity)(THIS_TYPE* str, uint32_t cap); \ 45 typedef struct leDynamicStringVTable
48 } leDynamicStringVTable;
62 const leDynamicStringVTable*
fn;
101 #define THIS_TYPE struct leWidget leChar * data
Definition: legato_dynamicstring.h:63
leString base
Definition: legato_dynamicstring.h:61
This struct represents a string.
Definition: legato_string.h:107
virtual uint32_t getCapacity(leDynamicString *_this)
Get capacity of the dynamic string.
This struct represents a dynamic string.
Definition: legato_dynamicstring.h:59
This struct represents a font object.
Definition: legato_font.h:156
leResult
This enum represents function call results.
Definition: legato_common.h:123
const leFont * font
Definition: legato_dynamicstring.h:66
uint16_t capacity
Definition: legato_dynamicstring.h:64
const leDynamicStringVTable * fn
Definition: legato_dynamicstring.h:62
void leDynamicString_Constructor(leDynamicString *str)
Consructs a dynamic string.
Definition: legato_dynamicstring.c:41
uint16_t length
Definition: legato_dynamicstring.h:65
virtual leResult setCapacity(leDynamicString *_this, uint32_t cap)
Set capacity of the dynamic string.
leDynamicString * leDynamicString_New(void)
Create a new dynamic string.
Definition: legato_dynamicstring.c:56
uint16_t leChar
This typedef represents Legato character.
Definition: legato_common.h:414
struct leDynamicString leDynamicString
This struct represents a dynamic string.
Fixed string functions and definitions.