int UpnpString_set_StringN(UpnpString *p, const char *s, size_t n)
Sets the string from a pointer to char using a maximum of N chars.
Definition: UpnpString.c:172
void UpnpString_delete(UpnpString *p)
Destructor.
Definition: UpnpString.c:99
const char * UpnpString_get_String(const UpnpString *p)
Returns the pointer to char.
Definition: UpnpString.c:155
void UpnpString_assign(UpnpString *p, const UpnpString *q)
Assignment operator.
Definition: UpnpString.c:134
int UpnpString_set_String(UpnpString *p, const char *s)
Sets the string from a pointer to char.
Definition: UpnpString.c:160
void UpnpString_clear(UpnpString *p)
Clears the string, sets its size to zero.
Definition: UpnpString.c:184
UpnpString * UpnpString_new()
Constructor.
Definition: UpnpString.c:73
UpnpString * UpnpString_dup(const UpnpString *p)
Copy Constructor.
Definition: UpnpString.c:113
int UpnpString_cmp(UpnpString *p, UpnpString *q)
Compares two strings for equality. Case matters.
Definition: UpnpString.c:191
int UpnpString_casecmp(UpnpString *p, UpnpString *q)
Compares two strings for equality. Case does not matter.
Definition: UpnpString.c:199
void UpnpString_set_Length(UpnpString *p, size_t n)
Truncates the string to the specified lenght, or does nothing if the current lenght is less than or e...
Definition: UpnpString.c:146
struct s_UpnpString UpnpString
Type of the string objects inside libupnp.
Definition: UpnpString.h:38
#define EXPORT_SPEC
Export functions on WIN32 DLLs.
Definition: UpnpGlobal.h:81
Defines constants that for some reason are not defined on some systems.
size_t UpnpString_get_Length(const UpnpString *p)
Returns the length of the string.
Definition: UpnpString.c:141