Diego Biurrun
d12b5b2f13
build: Split test programs off into separate files
This avoids spurious library rebuilds when only the test program
code is changed and simplifies the build system.
10 years ago
Henrik Gramner
2c3dbff1d8
avutil/avstring: Inline some tiny functions
They're short enough that inlining them actually reduces code size due to
all the overhead associated with making a function call.
Signed-off-by: Anton Khirnov <anton@khirnov.net>
10 years ago
Luca Barbato
69e7336b8e
avstring: Expose the simple name match function
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
11 years ago
Diego Biurrun
0d6d4a9e4a
avstring-test: Mark pointer passed to av_free() as non-const
libavutil/avstring.c:278:9: warning: passing argument 1 of ‘av_free’ discards ‘const’ qualifier from pointer target type
12 years ago
Martin Storsjö
4be368b504
avstring: Fix isxdigit to not accept non-hex characters
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Reimar Döffinger
efa7f42020
Use the avstring.h locale-independent character type functions
Make sure the behavior does not change with the locale.
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Reimar Döffinger
12c5c1d3e3
avstring: Add locale independent versions of some ctype.h functions
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Vladimir Pantelic
b85a5e87af
lavu: Add av_strnstr()
This is a length limited version of strstr()
Signed-off-by: Vladimir Pantelic <vladoman@gmail.com>
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
13 years ago
Luca Barbato
4333df6355
avstring: K&R formatting cosmetics
Signed-off-by: Diego Biurrun <diego@biurrun.de>
13 years ago
Luca Barbato
d8fd06c37d
avstring: add av_basename and av_dirname
Thread safe version of the common basename and dirname.
13 years ago
Anton Khirnov
cb45553f57
Remove pointless #undefs of previously forbidden functions.
13 years ago
Mans Rullgard
0daac647af
avstring-test: fix memory leaks
Signed-off-by: Mans Rullgard <mans@mansr.com>
13 years ago
Martin Storsjö
1d9c2dc89a
Don't include common.h from avutil.h
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Reimar Döffinger
ba04ecfdac
avstring: Add locale independent implementations of strcasecmp/strncasecmp
Signed-off-by: Martin Storsjö <martin@martin.st>
14 years ago
Mans Rullgard
2912e87a6c
Replace FFmpeg with Libav in licence headers
Signed-off-by: Mans Rullgard <mans@mansr.com>
15 years ago
Stefano Sabatini
372e288408
Move av_get_token() from libavfilter to libavutil.
Originally committed as revision 25225 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Måns Rullgård
ac6ef8682d
Add av_stristr() function
This is a case-insensitive version of strstr().
Originally committed as revision 22251 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Michael Niedermayer
b3e88ae84b
Place { of the function where indent -kr wants it.
Also more consistent with the rest of the code.
Originally committed as revision 20851 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Michael Niedermayer
64b12fc317
Move #include where it belongs.
This as a sideeffect fixes the linking failure of ffplay.
Originally committed as revision 20832 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Michael Niedermayer
277c733237
Add a function to convert a number to a av_malloced string.
Originally committed as revision 20829 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Diego Biurrun
4d55404fca
Rename string.c to avstring.c so that the name of header and C file match.
Originally committed as revision 16853 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Luca Abeni
1e7f363804
Implement av_strlcatf(): a strlcat which adds a printf style formatted string
Originally committed as revision 9753 to svn://svn.ffmpeg.org/ffmpeg/trunk
18 years ago
Måns Rullgård
059eeabf35
10l: fix av_str[i]start()
Originally committed as revision 9585 to svn://svn.ffmpeg.org/ffmpeg/trunk
18 years ago
Måns Rullgård
fc78ce803b
add some string functions
Originally committed as revision 9400 to svn://svn.ffmpeg.org/ffmpeg/trunk
18 years ago