diff options
author | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2011-11-05 17:20:41 +0200 |
---|---|---|
committer | Martin Storsjö <martin@martin.st> | 2011-11-06 11:52:56 +0200 |
commit | ba04ecfdacec4cf86e74b43fe8bcc09e06bb7a72 (patch) | |
tree | 374fbe08c811f62a5a9f3f4e0e36a417206a66e1 /libavutil/avstring.h | |
parent | 07b172fe8f6a5d567edc4dac3f813b210874d3b1 (diff) | |
download | ffmpeg-ba04ecfdacec4cf86e74b43fe8bcc09e06bb7a72.tar.gz |
avstring: Add locale independent implementations of strcasecmp/strncasecmp
Signed-off-by: Martin Storsjö <martin@martin.st>
Diffstat (limited to 'libavutil/avstring.h')
-rw-r--r-- | libavutil/avstring.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/libavutil/avstring.h b/libavutil/avstring.h index 8d97e1f768..6988f0e3e8 100644 --- a/libavutil/avstring.h +++ b/libavutil/avstring.h @@ -151,4 +151,16 @@ static inline int av_tolower(int c) return c; } +/* + * Locale independent case-insensitive compare. + * Note: This means only ASCII-range characters are case-insensitive + */ +int av_strcasecmp(const char *a, const char *b); + +/** + * Locale independent case-insensitive compare. + * Note: This means only ASCII-range characters are case-insensitive + */ +int av_strncasecmp(const char *a, const char *b, size_t n); + #endif /* AVUTIL_AVSTRING_H */ |