summaryrefslogtreecommitdiffstats
path: root/newlib/libc/include/string.h
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2016-07-24 20:00:34 +0200
committerCorinna Vinschen <corinna@vinschen.de>2016-08-15 10:56:58 +0200
commitc1b7d9d93dc8e88693162c0d984a114371919fdd (patch)
tree25842a96b7ae037393ebc3d96803a376e7beff45 /newlib/libc/include/string.h
parent8493c1631643fada62384768408852bc0fa6ff44 (diff)
downloadcygnal-c1b7d9d93dc8e88693162c0d984a114371919fdd.tar.gz
cygnal-c1b7d9d93dc8e88693162c0d984a114371919fdd.tar.bz2
cygnal-c1b7d9d93dc8e88693162c0d984a114371919fdd.zip
Implement per-locale string functions
strcasecmp_l, strcoll_l, strncasecmp_l, strxfrm_l, wcscasecmp_l, wcscoll_l, wcstrncasecmp_l, wcstrxfrm_l, strftime_l. Add missing CHEWOUT_FILES from previous patch. TODO: strfmon_l. Signed-off by: Corinna Vinschen <corinna@vinschen.de>
Diffstat (limited to 'newlib/libc/include/string.h')
-rw-r--r--newlib/libc/include/string.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/newlib/libc/include/string.h b/newlib/libc/include/string.h
index 56c7fc25b..549d51184 100644
--- a/newlib/libc/include/string.h
+++ b/newlib/libc/include/string.h
@@ -16,6 +16,11 @@
#define __need_NULL
#include <stddef.h>
+#if __POSIX_VISIBLE >= 200809 || defined (_COMPILING_NEWLIB)
+struct __locale_t;
+typedef struct __locale_t *locale_t;
+#endif
+
_BEGIN_STD_C
_PTR _EXFUN(memchr,(const _PTR, int, size_t));
@@ -43,6 +48,14 @@ char *_EXFUN(strtok,(char *__restrict, const char *__restrict));
#endif
size_t _EXFUN(strxfrm,(char *__restrict, const char *__restrict, size_t));
+#if __POSIX_VISIBLE >= 200809
+extern int strcasecmp_l (const char *, const char *, locale_t);
+extern int strncasecmp_l (const char *, const char *, size_t, locale_t);
+extern int strcoll_l (const char *, const char *, locale_t);
+extern size_t strxfrm_l (char *__restrict, const char *__restrict, size_t,
+ locale_t);
+#endif
+
#if __MISC_VISIBLE || __POSIX_VISIBLE
char *_EXFUN(strtok_r,(char *__restrict, const char *__restrict, char **__restrict));
#endif