21 #ifndef AVUTIL_AVSTRING_H
22 #define AVUTIL_AVSTRING_H
42 int av_strstart(
const char *str,
const char *pfx,
const char **ptr);
54 int av_stristart(
const char *str,
const char *pfx,
const char **ptr);
68 char *
av_stristr(
const char *haystack,
const char *needle);
83 char *
av_strnstr(
const char *haystack,
const char *needle,
size_t hay_length);
143 for (i = 0; i < len && s[i]; i++)
201 char *
av_strtok(
char *
s, const
char *delim,
char **saveptr);
223 if (c >=
'a' && c <=
'z')
233 if (c >=
'A' && c <=
'Z')
293 #define AV_ESCAPE_FLAG_WHITESPACE 0x01
300 #define AV_ESCAPE_FLAG_STRICT 0x02
318 int av_escape(
char **dst,
const char *
src,
const char *special_chars,
321 #define AV_UTF8_FLAG_ACCEPT_INVALID_BIG_CODES 1
322 #define AV_UTF8_FLAG_ACCEPT_NON_CHARACTERS 2
323 #define AV_UTF8_FLAG_ACCEPT_SURROGATES 4
324 #define AV_UTF8_FLAG_EXCLUDE_XML_INVALID_CONTROL_CODES 8
326 #define AV_UTF8_FLAG_ACCEPT_ALL \
327 AV_UTF8_FLAG_ACCEPT_INVALID_BIG_CODES|AV_UTF8_FLAG_ACCEPT_NON_CHARACTERS|AV_UTF8_FLAG_ACCEPT_SURROGATES