FFmpeg
|
#include <stddef.h>
Go to the source code of this file.
Functions | |
char * | ff_urldecode (const char *url, int decode_plus_sign) |
Decodes an URL from its percent-encoded form back into normal representation. More... | |
int | ff_urldecode_len (char *dest, size_t dest_len, const char *url, size_t url_max_len, int decode_plus_sign) |
Decodes an URL from its percent-encoded form back into normal representation. More... | |
char* ff_urldecode | ( | const char * | url, |
int | decode_plus_sign | ||
) |
Decodes an URL from its percent-encoded form back into normal representation.
This function returns the decoded URL in a string. The URL to be decoded does not necessarily have to be encoded but in that case the original string is duplicated.
url | a string to be decoded. |
decode_plus_sign | if nonzero plus sign is decoded to space |
Definition at line 80 of file urldecode.c.
Referenced by amqp_proto_open(), ff_http_auth_create_response(), and ftp_connect().
int ff_urldecode_len | ( | char * | dest, |
size_t | dest_len, | ||
const char * | url, | ||
size_t | url_max_len, | ||
int | decode_plus_sign | ||
) |
Decodes an URL from its percent-encoded form back into normal representation.
This function returns the decoded URL in a string. The URL to be decoded does not necessarily have to be encoded but in that case the original string is duplicated.
dest | the destination buffer. |
dest_len | the maximum available space in the destination buffer. Must be bigger than FFMIN(strlen(url), url_max_len) to avoid an AVERROR(EINVAL) result |
url_max_len | the maximum number of chars to read from url |
decode_plus_sign | if nonzero plus sign is decoded to space |
Definition at line 99 of file urldecode.c.
Referenced by ff_parse_opts_from_query_string(), and find_opt().