ffmpeg.libavutil.avstring

Undocumented in source.

Members

Enums

AVEscapeMode
enum AVEscapeMode
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.

Functions

av_append_path_component
char* av_append_path_component(const(char)* path, const(char)* component)

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.

av_asprintf
char* av_asprintf(const(char)* fmt, ...)

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().

av_basename
const(char)* av_basename(const(char)* path)

Thread safe basename. @param path the path, on DOS both \ and / are considered separators. @return pointer to the basename substring.

av_d2str
char* av_d2str(double d)

Convert a number to an av_malloced string.

av_dirname
const(char)* av_dirname(char* path)

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.

av_escape
int av_escape(char** dst, const(char)* src, const(char)* special_chars, AVEscapeMode mode, int flags)

Escape string in src, and put the escaped string in an allocated string in *dst, which must be freed with av_free().

av_get_token
char* av_get_token(const(char*)* buf, const(char)* term)

Unescape the given string until a non escaped terminating char, and return the token corresponding to the unescaped string.

av_isdigit
int av_isdigit(int c)

Locale-independent conversion of ASCII isdigit.

av_isgraph
int av_isgraph(int c)

Locale-independent conversion of ASCII isgraph.

av_isspace
int av_isspace(int c)

Locale-independent conversion of ASCII isspace.

av_isxdigit
int av_isxdigit(int c)

Locale-independent conversion of ASCII isxdigit.

av_match_list
int av_match_list(const(char)* name, const(char)* list, char separator)

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.

av_match_name
int av_match_name(const(char)* name, const(char)* names)

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.

av_strcasecmp
int av_strcasecmp(const(char)* a, const(char)* b)

Locale-independent case-insensitive compare. @note This means only ASCII-range characters are case-insensitive

av_strireplace
char* av_strireplace(const(char)* str, const(char)* from, const(char)* to)

Locale-independent strings replace. @note This means only ASCII-range characters are replace

av_stristart
int av_stristart(const(char)* str, const(char)* pfx, const(char*)* ptr)

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.

av_stristr
char* av_stristr(const(char)* haystack, const(char)* needle)

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.

av_strlcat
size_t av_strlcat(char* dst, const(char)* src, size_t size)

Append the string src to the string dst, but to a total length of no more than size - 1 bytes, and null-terminate dst.

av_strlcatf
size_t av_strlcatf(char* dst, size_t size, const(char)* fmt, ...)

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

av_strlcpy
size_t av_strlcpy(char* dst, const(char)* src, size_t size)

Copy the string src to dst, but no more than size - 1 bytes, and null-terminate dst.

av_strncasecmp
int av_strncasecmp(const(char)* a, const(char)* b, size_t n)

Locale-independent case-insensitive compare. @note This means only ASCII-range characters are case-insensitive

av_strnlen
size_t av_strnlen(const(char)* s, size_t len)

Get the count of continuous non zero chars starting from the beginning.

av_strnstr
char* av_strnstr(const(char)* haystack, const(char)* needle, size_t hay_length)

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.

av_strstart
int av_strstart(const(char)* str, const(char)* pfx, const(char*)* ptr)

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.

av_strtok
char* av_strtok(char* s, const(char)* delim, char** saveptr)

Split the string into several tokens which can be accessed by successive calls to av_strtok().

av_tolower
int av_tolower(int c)

Locale-independent conversion of ASCII characters to lowercase.

av_toupper
int av_toupper(int c)

Locale-independent conversion of ASCII characters to uppercase.

av_utf8_decode
int av_utf8_decode(int* codep, const(ubyte*)* bufp, const(ubyte)* buf_end, uint flags)

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.

Manifest constants

AV_ESCAPE_FLAG_STRICT
enum AV_ESCAPE_FLAG_STRICT;

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.

AV_ESCAPE_FLAG_WHITESPACE
enum AV_ESCAPE_FLAG_WHITESPACE;

Consider spaces special and escape them even in the middle of the string.

AV_UTF8_FLAG_ACCEPT_ALL
enum AV_UTF8_FLAG_ACCEPT_ALL;
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
AV_UTF8_FLAG_ACCEPT_INVALID_BIG_CODES
enum AV_UTF8_FLAG_ACCEPT_INVALID_BIG_CODES;

< accept codepoints over 0x10FFFF

AV_UTF8_FLAG_ACCEPT_NON_CHARACTERS
enum AV_UTF8_FLAG_ACCEPT_NON_CHARACTERS;

< accept non-characters - 0xFFFE and 0xFFFF

AV_UTF8_FLAG_ACCEPT_SURROGATES
enum AV_UTF8_FLAG_ACCEPT_SURROGATES;

< accept UTF-16 surrogates codes

AV_UTF8_FLAG_EXCLUDE_XML_INVALID_CONTROL_CODES
enum AV_UTF8_FLAG_EXCLUDE_XML_INVALID_CONTROL_CODES;

< exclude control codes not accepted by XML

Meta