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')
285 #define AV_ESCAPE_FLAG_WHITESPACE 0x01
292 #define AV_ESCAPE_FLAG_STRICT 0x02
310 int av_escape(
char **dst,
const char *
src,
const char *special_chars,
313 #define AV_UTF8_FLAG_ACCEPT_INVALID_BIG_CODES 1
314 #define AV_UTF8_FLAG_ACCEPT_NON_CHARACTERS 2
315 #define AV_UTF8_FLAG_ACCEPT_SURROGATES 4
316 #define AV_UTF8_FLAG_EXCLUDE_XML_INVALID_CONTROL_CODES 8
318 #define AV_UTF8_FLAG_ACCEPT_ALL \
319 AV_UTF8_FLAG_ACCEPT_INVALID_BIG_CODES|AV_UTF8_FLAG_ACCEPT_NON_CHARACTERS|AV_UTF8_FLAG_ACCEPT_SURROGATES