Append path component to the existing path. Path separator '/' is placed between when needed. Resulting string have to be freed with av_free(). @param path base path @param component component to be appended @return new path or NULL on error.
Print arguments following specified format into a large enough auto allocated buffer. It is similar to GNU asprintf(). @param fmt printf-compatible format string, specifying how the following parameters are used. @return the allocated string @note You have to free the string yourself with av_free().
Thread safe basename. @param path the path, on DOS both \ and / are considered separators. @return pointer to the basename substring.
Convert a number to an av_malloced string.
Thread safe dirname. @param path the path, on DOS both \ and / are considered separators. @return the path with the separator replaced by the string terminator or ".". @note the function may change the input string.
Escape string in src, and put the escaped string in an allocated string in *dst, which must be freed with av_free().
Unescape the given string until a non escaped terminating char, and return the token corresponding to the unescaped string.
Locale-independent conversion of ASCII isdigit.
Locale-independent conversion of ASCII isgraph.
Locale-independent conversion of ASCII isspace.
Locale-independent conversion of ASCII isxdigit.
Check if a name is in a list. @returns 0 if not found, or the 1 based index where it has been found in the list.
Match instances of a name in a comma-separated list of names. List entries are checked from the start to the end of the names list, the first match ends further processing. If an entry prefixed with '-' matches, then 0 is returned. The "ALL" list entry is considered to match all names.
Locale-independent case-insensitive compare. @note This means only ASCII-range characters are case-insensitive
Locale-independent strings replace. @note This means only ASCII-range characters are replace
Return non-zero if pfx is a prefix of str independent of case. If it is, *ptr is set to the address of the first character in str after the prefix.
Locate the first case-independent occurrence in the string haystack of the string needle. A zero-length string needle is considered to match at the start of haystack.
Append the string src to the string dst, but to a total length of no more than size - 1 bytes, and null-terminate dst.
Append output to a string, according to a format. Never write out of the destination buffer, and always put a terminating 0 within the buffer. @param dst destination buffer (string to which the output is appended) @param size total size of the destination buffer @param fmt printf-compatible format string, specifying how the following parameters are used @return the length of the string that would have been generated if enough space had been available
Copy the string src to dst, but no more than size - 1 bytes, and null-terminate dst.
Locale-independent case-insensitive compare. @note This means only ASCII-range characters are case-insensitive
Get the count of continuous non zero chars starting from the beginning.
Locate the first occurrence of the string needle in the string haystack where not more than hay_length characters are searched. A zero-length string needle is considered to match at the start of haystack.
Return non-zero if pfx is a prefix of str. If it is, *ptr is set to the address of the first character in str after the prefix.
Split the string into several tokens which can be accessed by successive calls to av_strtok().
Locale-independent conversion of ASCII characters to lowercase.
Locale-independent conversion of ASCII characters to uppercase.
Read and decode a single UTF-8 code point (character) from the buffer in *buf, and update *buf to point to the next byte to decode.
Escape only specified special characters. Without this flag, escape also any characters that may be considered special by av_get_token(), such as the single quote.
Consider spaces special and escape them even in the middle of the string.
< accept codepoints over 0x10FFFF
< accept non-characters - 0xFFFE and 0xFFFF
< accept UTF-16 surrogates codes
< exclude control codes not accepted by XML