World of Might and Magic
0.2.0
Open reimplementation of Might and Magic 6 7 8 game engine
|
См. документацию.
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);
132 size_t av_strlcatf(
char *
dst,
size_t size,
const char *fmt, ...) av_printf_format(3, 4);
143 for (i = 0; i <
len &&
s[i]; i++)
156 char *
av_asprintf(
const char *fmt, ...) av_printf_format(1, 2);
201 char *
av_strtok(
char *
s, const
char *delim,
char **saveptr);
208 return c >=
'0' &&
c <=
'9';
216 return c > 32 &&
c < 127;
224 return c ==
' ' ||
c ==
'\f' ||
c ==
'\n' ||
c ==
'\r' ||
c ==
'\t' ||
233 if (
c >=
'a' &&
c <=
'z')
243 if (
c >=
'A' &&
c <=
'Z')
273 char *
av_strireplace(
const char *str,
const char *from,
const char *to);
327 #define AV_ESCAPE_FLAG_WHITESPACE (1 << 0)
334 #define AV_ESCAPE_FLAG_STRICT (1 << 1)
352 av_warn_unused_result
356 #define AV_UTF8_FLAG_ACCEPT_INVALID_BIG_CODES 1
357 #define AV_UTF8_FLAG_ACCEPT_NON_CHARACTERS 2
358 #define AV_UTF8_FLAG_ACCEPT_SURROGATES 4
359 #define AV_UTF8_FLAG_EXCLUDE_XML_INVALID_CONTROL_CODES 8
361 #define AV_UTF8_FLAG_ACCEPT_ALL \
362 AV_UTF8_FLAG_ACCEPT_INVALID_BIG_CODES|AV_UTF8_FLAG_ACCEPT_NON_CHARACTERS|AV_UTF8_FLAG_ACCEPT_SURROGATES
392 av_warn_unused_result
av_warn_unused_result int av_utf8_decode(int32_t *codep, const uint8_t **bufp, const uint8_t *buf_end, unsigned int flags)
static av_const int av_isxdigit(int c)
char * av_get_token(const char **buf, const char *term)
char * av_stristr(const char *haystack, const char *needle)
int av_strcasecmp(const char *a, const char *b)
static av_const int av_isspace(int c)
char char * av_d2str(double d)
const char * av_basename(const char *path)
char * av_append_path_component(const char *path, const char *component)
av_warn_unused_result int av_escape(char **dst, const char *src, const char *special_chars, enum AVEscapeMode mode, int flags)
GLsizei const GLchar *const * path
const char * av_dirname(char *path)
char * av_strtok(char *s, const char *delim, char **saveptr)
GLenum GLuint GLenum GLsizei const GLchar * buf
int av_stristart(const char *str, const char *pfx, const char **ptr)
int av_sscanf(const char *string, const char *format,...)
@ AV_ESCAPE_MODE_QUOTE
Use single-quote escaping.
int av_match_list(const char *name, const char *list, char separator)
char * av_strireplace(const char *str, const char *from, const char *to)
size_t static size_t av_strnlen(const char *s, size_t len)
@ AV_ESCAPE_MODE_AUTO
Use auto-selected escaping mode.
int av_strncasecmp(const char *a, const char *b, size_t n)
static av_const int av_isgraph(int c)
static av_const int av_isdigit(int c)
int av_strstart(const char *str, const char *pfx, const char **ptr)
size_t av_strlcatf(char *dst, size_t size, const char *fmt,...) av_printf_format(3
static av_const int av_toupper(int c)
GLboolean GLboolean GLboolean b
EGLImageKHR EGLint * name
size_t av_strlcat(char *dst, const char *src, size_t size)
char * av_strnstr(const char *haystack, const char *needle, size_t hay_length)
char * av_asprintf(const char *fmt,...) av_printf_format(1
int av_match_name(const char *name, const char *names)
GLboolean GLboolean GLboolean GLboolean a
@ AV_ESCAPE_MODE_BACKSLASH
Use backslash escaping.
size_t av_strlcpy(char *dst, const char *src, size_t size)
static av_const int av_tolower(int c)