libUPnP  1.8.0
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 #ifdef __cplusplus
28 extern "C" {
29 #endif /* __cplusplus */
30 
31 
35 typedef struct s_UpnpString UpnpString;
36 
37 
44 
45 
51  UpnpString *p);
52 
53 
61  const UpnpString *p);
62 
63 
69  UpnpString *p,
71  const UpnpString *q);
72 
73 
81  const UpnpString *p);
82 
83 
91  const UpnpString *p);
92 
93 
99  UpnpString *p,
101  const char *s);
102 
103 
109  UpnpString *p,
111  const char *s,
113  int n);
114 
115 
121  UpnpString *p);
122 
123 
124 #ifdef __cplusplus
125 }
126 #endif /* __cplusplus */
127 
128 
129 /* @} UpnpString The UpnpString API */
130 
131 
132 #endif /* STRING_H */
133 
int UpnpString_get_Length(const UpnpString *p)
Returns the length of the string.
Definition: UpnpString.c:118
void UpnpString_delete(UpnpString *p)
Destructor.
Definition: UpnpString.c:73
void UpnpString_set_StringN(UpnpString *p, const char *s, int n)
Sets the string from a pointer to char using a maximum of N chars.
Definition: UpnpString.c:138
void UpnpString_set_String(UpnpString *p, const char *s)
Sets the string from a pointer to char.
Definition: UpnpString.c:130
const char * UpnpString_get_String(const UpnpString *p)
Returns the pointer to char.
Definition: UpnpString.c:124
void UpnpString_assign(UpnpString *p, const UpnpString *q)
Assignment operator.
Definition: UpnpString.c:110
void UpnpString_clear(UpnpString *p)
Clears the string, sets its size to zero.
Definition: UpnpString.c:148
UpnpString * UpnpString_new()
Constructor.
Definition: UpnpString.c:46
UpnpString * UpnpString_dup(const UpnpString *p)
Copy Constructor.
Definition: UpnpString.c:88
struct s_UpnpString UpnpString
Type of the string objects inside libupnp.
Definition: UpnpString.h:35
#define EXPORT_SPEC
Export functions on WIN32 DLLs.
Definition: UpnpGlobal.h:82
Defines constants that for some reason are not defined on some systems.