root / qstring.h @ a18f844f
History | View | Annotate | Download (621 Bytes)
1 | 66f70487 | Luiz Capitulino | #ifndef QSTRING_H
|
---|---|---|---|
2 | 66f70487 | Luiz Capitulino | #define QSTRING_H
|
3 | 66f70487 | Luiz Capitulino | |
4 | 764c1cae | Luiz Capitulino | #include <stdint.h> |
5 | 66f70487 | Luiz Capitulino | #include "qobject.h" |
6 | 66f70487 | Luiz Capitulino | |
7 | 66f70487 | Luiz Capitulino | typedef struct QString { |
8 | 66f70487 | Luiz Capitulino | QObject_HEAD; |
9 | 66f70487 | Luiz Capitulino | char *string;
|
10 | d30ec846 | Anthony Liguori | size_t length; |
11 | d30ec846 | Anthony Liguori | size_t capacity; |
12 | 66f70487 | Luiz Capitulino | } QString; |
13 | 66f70487 | Luiz Capitulino | |
14 | d30ec846 | Anthony Liguori | QString *qstring_new(void);
|
15 | 66f70487 | Luiz Capitulino | QString *qstring_from_str(const char *str); |
16 | 4b5c5766 | Luiz Capitulino | QString *qstring_from_substr(const char *str, int start, int end); |
17 | 66f70487 | Luiz Capitulino | const char *qstring_get_str(const QString *qstring); |
18 | 764c1cae | Luiz Capitulino | void qstring_append_int(QString *qstring, int64_t value);
|
19 | d30ec846 | Anthony Liguori | void qstring_append(QString *qstring, const char *str); |
20 | 6fe9565c | Luiz Capitulino | void qstring_append_chr(QString *qstring, int c); |
21 | 66f70487 | Luiz Capitulino | QString *qobject_to_qstring(const QObject *obj);
|
22 | 66f70487 | Luiz Capitulino | |
23 | 66f70487 | Luiz Capitulino | #endif /* QSTRING_H */ |