2009-08-28 18:27:06 +00:00
|
|
|
#ifndef QSTRING_H
|
|
|
|
#define QSTRING_H
|
|
|
|
|
|
|
|
#include "qobject.h"
|
|
|
|
|
|
|
|
typedef struct QString {
|
|
|
|
QObject_HEAD;
|
|
|
|
char *string;
|
2009-11-11 16:49:51 +00:00
|
|
|
size_t length;
|
|
|
|
size_t capacity;
|
2009-08-28 18:27:06 +00:00
|
|
|
} QString;
|
|
|
|
|
2009-11-11 16:49:51 +00:00
|
|
|
QString *qstring_new(void);
|
2009-08-28 18:27:06 +00:00
|
|
|
QString *qstring_from_str(const char *str);
|
|
|
|
const char *qstring_get_str(const QString *qstring);
|
2009-11-11 16:49:51 +00:00
|
|
|
void qstring_append(QString *qstring, const char *str);
|
2009-08-28 18:27:06 +00:00
|
|
|
QString *qobject_to_qstring(const QObject *obj);
|
|
|
|
|
|
|
|
#endif /* QSTRING_H */
|