UpnpString object declaration. More...
#include <UPnPsdk/visibility.hpp>
Go to the source code of this file.
Typedefs | |
typedef struct s_UpnpString | UpnpString |
Type of the string objects inside libupnp. | |
Functions | |
PUPNP_Api UpnpString * | UpnpString_new (void) |
Constructor. | |
PUPNP_Api void | UpnpString_delete (UpnpString *p) |
Destructor. | |
PUPNP_Api UpnpString * | UpnpString_dup (const UpnpString *p) |
Copy Constructor. | |
PUPNP_Api void | UpnpString_assign (UpnpString *p, const UpnpString *q) |
Assignment operator. | |
PUPNP_Api size_t | UpnpString_get_Length (const UpnpString *p) |
Returns the length of the string. | |
PUPNP_Api 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 equal to the requested length. | |
PUPNP_Api const char * | UpnpString_get_String (const UpnpString *p) |
Returns the pointer to char. | |
PUPNP_Api int | UpnpString_set_String (UpnpString *p, const char *s) |
Sets the string from a pointer to char. | |
PUPNP_Api 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. | |
PUPNP_Api void | UpnpString_clear (UpnpString *p) |
Clears the string, sets its size to zero. | |
PUPNP_Api int | UpnpString_cmp (UpnpString *p, UpnpString *q) |
Compares two strings for equality. Case matters. | |
PUPNP_Api int | UpnpString_casecmp (UpnpString *p, UpnpString *q) |
Compares two strings for equality. Case does not matter. | |
UpnpString object declaration.
Definition in file UpnpString.hpp.