From 56a184d529d446bdff375fadeb9c0352a342f989 Mon Sep 17 00:00:00 2001 From: Fabien Costantini Date: Sat, 21 Apr 2012 17:21:11 +0000 Subject: STR 2771 fix: introduce a new ascii strcasecmp that does not rely on locale sensitive toupper tolower. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9368 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/flstring.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/flstring.h') diff --git a/src/flstring.h b/src/flstring.h index 60e5af6e3..be4991bf2 100644 --- a/src/flstring.h +++ b/src/flstring.h @@ -84,11 +84,14 @@ FL_EXPORT extern size_t fl_strlcpy(char *, const char *, size_t); # define strlcpy fl_strlcpy # endif /* !HAVE_STRLCPY */ +// locale independent ascii compare, does not introduce locale pbs as w/ case cmp +FL_EXPORT extern int fl_ascii_strcasecmp(const char *s, const char *t); + # ifdef __cplusplus } # endif /* __cplusplus */ -#endif /* !flstring_h */ +#endif /* !flstring_h */ /* * End of "$Id$". -- cgit v1.2.3