libUPnP 1.14.19
UpnpString.h
Go to the documentation of this file.
1
2
3#ifndef STRING_H
4#define STRING_H
5
22#include "UpnpGlobal.h" /* for UPNP_EXPORT_SPEC */
23
24#include <stdlib.h> /* for size_t */
25
26#ifdef __cplusplus
27extern "C" {
28#endif /* __cplusplus */
29
33typedef struct s_UpnpString UpnpString;
34
41
47 UpnpString *p);
48
56 const UpnpString *p);
57
63 UpnpString *p,
65 const UpnpString *q);
66
74 const UpnpString *p);
75
82 UpnpString *p,
84 size_t n);
85
93 const UpnpString *p);
94
100 UpnpString *p,
102 const char *s);
103
109 UpnpString *p,
111 const char *s,
113 size_t n);
114
120 UpnpString *p);
121
129 UpnpString *p,
131 UpnpString *q);
132
140 UpnpString *p,
142 UpnpString *q);
143
144#ifdef __cplusplus
145}
146#endif /* __cplusplus */
147
148/* @} UpnpString The UpnpString API */
149
150#endif /* STRING_H */
Defines constants that for some reason are not defined on some systems.
#define UPNP_EXPORT_SPEC
Export functions on WIN32 DLLs.
Definition UpnpGlobal.h:98
UpnpString * UpnpString_dup(const UpnpString *p)
Copy Constructor.
Definition UpnpString.c:115
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:175
int UpnpString_set_String(UpnpString *p, const char *s)
Sets the string from a pointer to char.
Definition UpnpString.c:162
int UpnpString_casecmp(UpnpString *p, UpnpString *q)
Compares two strings for equality. Case does not matter.
Definition UpnpString.c:203
size_t UpnpString_get_Length(const UpnpString *p)
Returns the length of the string.
Definition UpnpString.c:143
UpnpString * UpnpString_new(void)
Constructor.
Definition UpnpString.c:74
const char * UpnpString_get_String(const UpnpString *p)
Returns the pointer to char.
Definition UpnpString.c:157
void UpnpString_delete(UpnpString *p)
Destructor.
Definition UpnpString.c:100
int UpnpString_cmp(UpnpString *p, UpnpString *q)
Compares two strings for equality. Case matters.
Definition UpnpString.c:195
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:148
struct s_UpnpString UpnpString
Type of the string objects inside libupnp.
Definition UpnpString.h:33
void UpnpString_assign(UpnpString *p, const UpnpString *q)
Assignment operator.
Definition UpnpString.c:136
void UpnpString_clear(UpnpString *p)
Clears the string, sets its size to zero.
Definition UpnpString.c:188