From 12c5c1d3e3906e18a96ec380605d2f1504fc3d3b Mon Sep 17 00:00:00 2001 From: Reimar Döffinger Date: Wed, 6 Mar 2013 14:00:22 +0200 Subject: avstring: Add locale independent versions of some ctype.h functions MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Martin Storsjö --- libavutil/avstring.h | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'libavutil/avstring.h') diff --git a/libavutil/avstring.h b/libavutil/avstring.h index e0e6ed26f5..b7d10983c3 100644 --- a/libavutil/avstring.h +++ b/libavutil/avstring.h @@ -151,6 +151,21 @@ char *av_d2str(double d); */ char *av_get_token(const char **buf, const char *term); +/** + * Locale-independent conversion of ASCII isdigit. + */ +int av_isdigit(int c); + +/** + * Locale-independent conversion of ASCII isgraph. + */ +int av_isgraph(int c); + +/** + * Locale-independent conversion of ASCII isspace. + */ +int av_isspace(int c); + /** * Locale-independent conversion of ASCII characters to uppercase. */ @@ -171,6 +186,11 @@ static inline int av_tolower(int c) return c; } +/** + * Locale-independent conversion of ASCII isxdigit. + */ +int av_isxdigit(int c); + /* * Locale-independent case-insensitive compare. * @note This means only ASCII-range characters are case-insensitive -- cgit v1.2.3