comparison avstring.h @ 1027:7d79d41d152e libavutil

Move av_get_token() from libavfilter to libavutil.
author stefano
date Mon, 27 Sep 2010 16:23:43 +0000
parents c66e06fb1b36
children
comparison
equal deleted inserted replaced
1026:580d47a2f015 1027:7d79d41d152e
112 /** 112 /**
113 * Convert a number to a av_malloced string. 113 * Convert a number to a av_malloced string.
114 */ 114 */
115 char *av_d2str(double d); 115 char *av_d2str(double d);
116 116
117 /**
118 * Unescape the given string until a non escaped terminating char,
119 * and return the token corresponding to the unescaped string.
120 *
121 * The normal \ and ' escaping is supported. Leading and trailing
122 * whitespaces are removed, unless they are escaped with '\' or are
123 * enclosed between ''.
124 *
125 * @param buf the buffer to parse, buf will be updated to point to the
126 * terminating char
127 * @param term a 0-terminated list of terminating chars
128 * @return the malloced unescaped string, which must be av_freed by
129 * the user, NULL in case of allocation failure
130 */
131 char *av_get_token(const char **buf, const char *term);
132
117 #endif /* AVUTIL_AVSTRING_H */ 133 #endif /* AVUTIL_AVSTRING_H */