avstring: Add locale independent implementations of strcasecmp/strncasecmp

Signed-off-by: Martin Storsjö <martin@martin.st>
This commit is contained in:
Reimar Döffinger
2011-11-05 17:20:41 +02:00
committed by Martin Storsjö
parent 07b172fe8f
commit ba04ecfdac
4 changed files with 37 additions and 1 deletions

View File

@@ -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 */