musl/src/string
Rich Felker c5b8f19305 add support for LC_TIME and LC_MESSAGES translations
for LC_MESSAGES, translation of strerror and similar literal message
functions is supported. for messages in other places (particularly the
dynamic linker) that use format strings, translation is not yet
supported. in order to make it possible and safe, such messages will
need to be refactored to separate the textual content from the format.

for LC_TIME, the day and month names and strftime-style format strings
provided by nl_langinfo are supported for translation. however there
may be limitations, as some of the original C-locale nl_langinfo
strings are non-unique and thus perhaps non-suitable as keys.

overall, the locale support activated by this commit should not be
seen as complete and polished but as a basis for beginning to test
locale functionality and implement locales.
2014-07-26 05:36:25 -04:00
..
armel add arm-optimized memcpy implementation from bionic libc 2013-08-14 03:06:21 -04:00
armhf add arm-optimized memcpy implementation from bionic libc 2013-08-14 03:06:21 -04:00
i386 optimized memset asm for i386 and x86_64 2013-08-01 21:44:43 -04:00
x86_64 optimized memset asm for i386 and x86_64 2013-08-01 21:44:43 -04:00
bcmp.c include cleanups: remove unused headers and add feature test macros 2013-12-12 05:09:18 +00:00
bcopy.c include cleanups: remove unused headers and add feature test macros 2013-12-12 05:09:18 +00:00
bzero.c include cleanups: remove unused headers and add feature test macros 2013-12-12 05:09:18 +00:00
index.c include cleanups: remove unused headers and add feature test macros 2013-12-12 05:09:18 +00:00
memccpy.c include cleanups: remove unused headers and add feature test macros 2013-12-12 05:09:18 +00:00
memchr.c include cleanups: remove unused headers and add feature test macros 2013-12-12 05:09:18 +00:00
memcmp.c initial check-in, version 0.5.0 2011-02-12 00:22:29 -05:00
memcpy.c optimized C memcpy 2013-08-28 03:34:57 -04:00
memmem.c fix incorrect comparison loop condition in memmem 2014-06-19 00:42:28 -04:00
memmove.c reenable word-at-at-time copying in memmove 2012-09-10 18:16:11 -04:00
mempcpy.c include cleanups: remove unused headers and add feature test macros 2013-12-12 05:09:18 +00:00
memrchr.c implement memrchr (nonstandard) and optimize strrchr in terms of it 2011-04-13 08:36:29 -04:00
memset.c optimized C memset 2013-08-27 18:08:29 -04:00
rindex.c include cleanups: remove unused headers and add feature test macros 2013-12-12 05:09:18 +00:00
stpcpy.c include cleanups: remove unused headers and add feature test macros 2013-12-12 05:09:18 +00:00
stpncpy.c include cleanups: remove unused headers and add feature test macros 2013-12-12 05:09:18 +00:00
strcasecmp.c consolidate str[n]casecmp_l into str[n]casecmp source files 2014-07-02 21:38:54 -04:00
strcasestr.c replace stub with working strcasestr 2013-02-21 23:54:25 -05:00
strcat.c use restrict everywhere it's required by c99 and/or posix 2008 2012-09-06 22:44:55 -04:00
strchr.c optimize strchrnul/strcspn not to scan string twice on no-match 2012-09-27 17:19:09 -04:00
strchrnul.c include cleanups: remove unused headers and add feature test macros 2013-12-12 05:09:18 +00:00
strcmp.c strcmp: Remove unnecessary check for *r 2013-11-23 16:17:38 -05:00
strcpy.c use restrict everywhere it's required by c99 and/or posix 2008 2012-09-06 22:44:55 -04:00
strcspn.c optimize strchrnul/strcspn not to scan string twice on no-match 2012-09-27 17:19:09 -04:00
strdup.c initial check-in, version 0.5.0 2011-02-12 00:22:29 -05:00
strerror_r.c Add ABI compatability aliases. 2013-04-05 23:20:28 -07:00
strlcat.c more header cleanup and conformance fixes - string.h 2011-02-14 20:53:15 -05:00
strlcpy.c include cleanups: remove unused headers and add feature test macros 2013-12-12 05:09:18 +00:00
strlen.c include cleanups: remove unused headers and add feature test macros 2013-12-12 05:09:18 +00:00
strncasecmp.c consolidate str[n]casecmp_l into str[n]casecmp source files 2014-07-02 21:38:54 -04:00
strncat.c use restrict everywhere it's required by c99 and/or posix 2008 2012-09-06 22:44:55 -04:00
strncmp.c fix all implicit conversion between signed/unsigned pointers 2011-03-25 16:34:03 -04:00
strncpy.c use restrict everywhere it's required by c99 and/or posix 2008 2012-09-06 22:44:55 -04:00
strndup.c initial check-in, version 0.5.0 2011-02-12 00:22:29 -05:00
strnlen.c initial check-in, version 0.5.0 2011-02-12 00:22:29 -05:00
strpbrk.c initial check-in, version 0.5.0 2011-02-12 00:22:29 -05:00
strrchr.c fix failure of strrchr(str, 0) 2012-05-26 18:01:34 -04:00
strsep.c fix prototype for strsep 2011-04-06 14:28:29 -04:00
strsignal.c add support for LC_TIME and LC_MESSAGES translations 2014-07-26 05:36:25 -04:00
strspn.c fix all implicit conversion between signed/unsigned pointers 2011-03-25 16:34:03 -04:00
strstr.c fix false negatives with periodic needles in strstr, wcsstr, and memmem 2014-04-18 17:38:35 -04:00
strtok.c use restrict everywhere it's required by c99 and/or posix 2008 2012-09-06 22:44:55 -04:00
strtok_r.c use restrict everywhere it's required by c99 and/or posix 2008 2012-09-06 22:44:55 -04:00
strverscmp.c include cleanups: remove unused headers and add feature test macros 2013-12-12 05:09:18 +00:00
swab.c use restrict everywhere it's required by c99 and/or posix 2008 2012-09-06 22:44:55 -04:00
wcpcpy.c use restrict everywhere it's required by c99 and/or posix 2008 2012-09-06 22:44:55 -04:00
wcpncpy.c use restrict everywhere it's required by c99 and/or posix 2008 2012-09-06 22:44:55 -04:00
wcscasecmp.c add all missing wchar functions except floating point parsers 2012-03-01 23:24:45 -05:00
wcscasecmp_l.c add all missing wchar functions except floating point parsers 2012-03-01 23:24:45 -05:00
wcscat.c use restrict everywhere it's required by c99 and/or posix 2008 2012-09-06 22:44:55 -04:00
wcschr.c initial check-in, version 0.5.0 2011-02-12 00:22:29 -05:00
wcscmp.c initial check-in, version 0.5.0 2011-02-12 00:22:29 -05:00
wcscpy.c use restrict everywhere it's required by c99 and/or posix 2008 2012-09-06 22:44:55 -04:00
wcscspn.c initial check-in, version 0.5.0 2011-02-12 00:22:29 -05:00
wcsdup.c add all missing wchar functions except floating point parsers 2012-03-01 23:24:45 -05:00
wcslen.c initial check-in, version 0.5.0 2011-02-12 00:22:29 -05:00
wcsncasecmp.c add all missing wchar functions except floating point parsers 2012-03-01 23:24:45 -05:00
wcsncasecmp_l.c add all missing wchar functions except floating point parsers 2012-03-01 23:24:45 -05:00
wcsncat.c use restrict everywhere it's required by c99 and/or posix 2008 2012-09-06 22:44:55 -04:00
wcsncmp.c fix overrun (n essentially ignored) in wcsncmp 2012-05-26 18:04:17 -04:00
wcsncpy.c use restrict everywhere it's required by c99 and/or posix 2008 2012-09-06 22:44:55 -04:00
wcsnlen.c add all missing wchar functions except floating point parsers 2012-03-01 23:24:45 -05:00
wcspbrk.c initial check-in, version 0.5.0 2011-02-12 00:22:29 -05:00
wcsrchr.c fix wrong type for wcsrchr argument 2 2011-06-13 14:06:04 -04:00
wcsspn.c initial check-in, version 0.5.0 2011-02-12 00:22:29 -05:00
wcsstr.c fix false negatives with periodic needles in strstr, wcsstr, and memmem 2014-04-18 17:38:35 -04:00
wcstok.c use restrict everywhere it's required by c99 and/or posix 2008 2012-09-06 22:44:55 -04:00
wcswcs.c initial check-in, version 0.5.0 2011-02-12 00:22:29 -05:00
wmemchr.c include cleanups: remove unused headers and add feature test macros 2013-12-12 05:09:18 +00:00
wmemcmp.c include cleanups: remove unused headers and add feature test macros 2013-12-12 05:09:18 +00:00
wmemcpy.c include cleanups: remove unused headers and add feature test macros 2013-12-12 05:09:18 +00:00
wmemmove.c include cleanups: remove unused headers and add feature test macros 2013-12-12 05:09:18 +00:00
wmemset.c include cleanups: remove unused headers and add feature test macros 2013-12-12 05:09:18 +00:00