31 #include "libavutil/mem.h"
32 #include "libavutil/avstring.h"
37 int s = 0, d = 0, url_len = 0;
44 url_len = strlen(url) + 1;
53 if (c ==
'%' && s + 2 < url_len) {
70 dest[d++] = 16 * c2 + c3;
77 }
else if (c ==
'+') {
int av_isxdigit(int c)
Locale-independent conversion of ASCII isxdigit.
static int av_tolower(int c)
Locale-independent conversion of ASCII characters to lowercase.
void * av_malloc(size_t size) av_malloc_attrib 1(1)
Allocate a block of size bytes with alignment suitable for all memory accesses (including vectors if ...
char * ff_urldecode(const char *url)
Decodes an URL from its percent-encoded form back into normal representation.