32#ifndef _XBPS_STRING_H_
33#define _XBPS_STRING_H_
37#include <xbps/xbps_object.h>
39typedef struct _prop_string *xbps_string_t;
45xbps_string_t xbps_string_create(
void);
46xbps_string_t xbps_string_create_cstring(
const char *);
47xbps_string_t xbps_string_create_cstring_nocopy(
const char *);
49xbps_string_t xbps_string_copy(xbps_string_t);
50xbps_string_t xbps_string_copy_mutable(xbps_string_t);
52size_t xbps_string_size(xbps_string_t);
53bool xbps_string_mutable(xbps_string_t);
55char * xbps_string_cstring(xbps_string_t);
56const char * xbps_string_cstring_nocopy(xbps_string_t);
58bool xbps_string_append(xbps_string_t, xbps_string_t);
59bool xbps_string_append_cstring(xbps_string_t,
const char *);
61bool xbps_string_equals(xbps_string_t, xbps_string_t);
62bool xbps_string_equals_cstring(xbps_string_t,
const char *);