]> git.proxmox.com Git - qemu.git/blame - qstring.h
tcg-sparc: Implement ANDC.
[qemu.git] / qstring.h
CommitLineData
66f70487
LC
1#ifndef QSTRING_H
2#define QSTRING_H
3
764c1cae 4#include <stdint.h>
66f70487
LC
5#include "qobject.h"
6
7typedef struct QString {
8 QObject_HEAD;
9 char *string;
d30ec846
AL
10 size_t length;
11 size_t capacity;
66f70487
LC
12} QString;
13
d30ec846 14QString *qstring_new(void);
66f70487 15QString *qstring_from_str(const char *str);
4b5c5766 16QString *qstring_from_substr(const char *str, int start, int end);
66f70487 17const char *qstring_get_str(const QString *qstring);
764c1cae 18void qstring_append_int(QString *qstring, int64_t value);
d30ec846 19void qstring_append(QString *qstring, const char *str);
6fe9565c 20void qstring_append_chr(QString *qstring, int c);
66f70487
LC
21QString *qobject_to_qstring(const QObject *obj);
22
23#endif /* QSTRING_H */