libUPnP 1.8.4
UpnpString.h
Go to the documentation of this file.
1
2
3#ifndef STRING_H
4#define STRING_H
5
6
24#include "UpnpGlobal.h" /* for EXPORT_SPEC */
25
26
27#include <stdlib.h> /* for size_t */
28
29
30#ifdef __cplusplus
31extern "C" {
32#endif /* __cplusplus */
33
34
38typedef struct s_UpnpString UpnpString;
39
40
47
48
54 UpnpString *p);
55
56
64 const UpnpString *p);
65
66
72 UpnpString *p,
74 const UpnpString *q);
75
76
84 const UpnpString *p);
85
86
93 UpnpString *p,
95 size_t n);
96
97
105 const UpnpString *p);
106
107
113 UpnpString *p,
115 const char *s);
116
117
123 UpnpString *p,
125 const char *s,
127 size_t n);
128
129
135 UpnpString *p);
136
137
145 UpnpString *p,
147 UpnpString *q);
148
149
157 UpnpString *p,
159 UpnpString *q);
160
161
162#ifdef __cplusplus
163}
164#endif /* __cplusplus */
165
166
167/* @} UpnpString The UpnpString API */
168
169
170#endif /* STRING_H */
171
Defines constants that for some reason are not defined on some systems.
#define EXPORT_SPEC
Export functions on WIN32 DLLs.
Definition: UpnpGlobal.h:87
UpnpString * UpnpString_dup(const UpnpString *p)
Copy Constructor.
Definition: UpnpString.c:117
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:176
int UpnpString_set_String(UpnpString *p, const char *s)
Sets the string from a pointer to char.
Definition: UpnpString.c:164
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:145
UpnpString * UpnpString_new(void)
Constructor.
Definition: UpnpString.c:77
const char * UpnpString_get_String(const UpnpString *p)
Returns the pointer to char.
Definition: UpnpString.c:159
void UpnpString_delete(UpnpString *p)
Destructor.
Definition: UpnpString.c:103
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:150
struct s_UpnpString UpnpString
Type of the string objects inside libupnp.
Definition: UpnpString.h:38
void UpnpString_assign(UpnpString *p, const UpnpString *q)
Assignment operator.
Definition: UpnpString.c:138
void UpnpString_clear(UpnpString *p)
Clears the string, sets its size to zero.
Definition: UpnpString.c:188