Reimar Döffinger
ba04ecfdac
avstring: Add locale independent implementations of strcasecmp/strncasecmp
...
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Reimar Döffinger
96949dafcc
Replace all strcasecmp/strncasecmp usages.
...
All current usages of it are incompatible with localization.
For example strcasecmp("i", "I") != 0 is possible, but would
break many of the places where it is used.
Instead use our own implementations that always treat the data
as ASCII.
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
13 years ago
Stefano Sabatini
b35e9e19e9
lavu: add av_strtok()
...
The function strtok_r() is part of the POSIX.1 specification, but is not
available on some platforms. We provide an internal implementation, so we
do not need to rely on a platform implementation.
13 years ago
Michael Niedermayer
68eb35b886
avstring: fix return discards qualifiers from pointer target type.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Clément Bœsch
61e2e29691
av_string: add av_asprintf().
13 years ago
Mans Rullgard
2912e87a6c
Replace FFmpeg with Libav in licence headers
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 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
14 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
15 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
15 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
15 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
15 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
16 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