myMPD
Internal API documentation
Loading...
Searching...
No Matches
sds_url.h File Reference

URL functions for sds strings. More...

#include "dist/sds/sds.h"
#include <stdbool.h>
Include dependency graph for sds_url.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

sds sds_urldecode (sds s, const char *p, size_t len, bool is_form_url_encoded)
sds sds_urlencode (sds s, const char *p, size_t len)

Detailed Description

URL functions for sds strings.

Function Documentation

◆ sds_urldecode()

sds sds_urldecode ( sds s,
const char * p,
size_t len,
bool is_form_url_encoded )

Url decodes a string

Parameters
ssds string to append the url decoded string
pstring to url decode
lenstring length to url decode
is_form_url_encodedtrue decodes + chars to spaces
Returns
modified sds string

◆ sds_urlencode()

sds sds_urlencode ( sds s,
const char * p,
size_t len )

Url encodes a string

Parameters
ssds string to append the encoded string
pstring to url encode
lenstring length to url encode
Returns
modified sds string