• Main Page
  • Related Pages
  • Modules
  • Data Structures
  • Files
  • File List
  • Globals

debian/tmp/usr/include/libavutil/avstring.h

Go to the documentation of this file.
00001 /*
00002  * Copyright (c) 2007 Mans Rullgard
00003  *
00004  * This file is part of FFmpeg.
00005  *
00006  * FFmpeg is free software; you can redistribute it and/or
00007  * modify it under the terms of the GNU Lesser General Public
00008  * License as published by the Free Software Foundation; either
00009  * version 2.1 of the License, or (at your option) any later version.
00010  *
00011  * FFmpeg is distributed in the hope that it will be useful,
00012  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00013  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00014  * Lesser General Public License for more details.
00015  *
00016  * You should have received a copy of the GNU Lesser General Public
00017  * License along with FFmpeg; if not, write to the Free Software
00018  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
00019  */
00020 
00021 #ifndef AVUTIL_AVSTRING_H
00022 #define AVUTIL_AVSTRING_H
00023 
00024 #include <stddef.h>
00025 #include "attributes.h"
00026 
00041 int av_strstart(const char *str, const char *pfx, const char **ptr);
00042 
00053 int av_stristart(const char *str, const char *pfx, const char **ptr);
00054 
00067 char *av_stristr(const char *haystack, const char *needle);
00068 
00084 size_t av_strlcpy(char *dst, const char *src, size_t size);
00085 
00102 size_t av_strlcat(char *dst, const char *src, size_t size);
00103 
00116 size_t av_strlcatf(char *dst, size_t size, const char *fmt, ...) av_printf_format(3, 4);
00117 
00126 char *av_asprintf(const char *fmt, ...) av_printf_format(1, 2);
00127 
00131 char *av_d2str(double d);
00132 
00147 char *av_get_token(const char **buf, const char *term);
00148 
00171 char *av_strtok(char *s, const char *delim, char **saveptr);
00172 
00176 static inline int av_toupper(int c)
00177 {
00178     if (c >= 'a' && c <= 'z')
00179         c ^= 0x20;
00180     return c;
00181 }
00182 
00186 static inline int av_tolower(int c)
00187 {
00188     if (c >= 'A' && c <= 'Z')
00189         c ^= 0x20;
00190     return c;
00191 }
00192 
00197 int av_strcasecmp(const char *a, const char *b);
00198 
00203 int av_strncasecmp(const char *a, const char *b, size_t n);
00204 
00209 #endif /* AVUTIL_AVSTRING_H */
Generated on Fri Feb 1 2013 14:34:26 for FFmpeg by doxygen 1.7.1