newlib/newlib/libc/ctype
Corinna Vinschen 28186e81d9 * libc/ctype/iswalpha.c: Handle all wchar_t as unicode on
_MB_CAPABLE systems.
	* libc/ctype/iswblank.c: Ditto.
	* libc/ctype/iswcntrl.c: Ditto.
	* libc/ctype/iswprint.c: Ditto.
	* libc/ctype/iswpunct.c: Ditto.
	* libc/ctype/iswspace.c: Ditto.
	* libc/ctype/jp2uc.c (__jp2uc): On Cygwin, just return c.
	Explain why.
	* libc/ctype/towlower.c: Ditto.
	* libc/ctype/towupper.c: Ditto.
	* libc/include/sys/config.h: Define _MB_EXTENDED_CHARSETS_ISO
	and _MB_EXTENDED_CHARSETS_WINDOWS if _MB_EXTENDED_CHARSETS_ALL is
	defined.  Define _MB_EXTENDED_CHARSETS_ALL on Cygwin only for now.
	* libc/include/sys/reent.h (struct _reent): Mark _current_category
	and _current_locale as unused.
	* libc/locale/locale.c: Add new charset support to documentation.
	Include ../stdio/local.h from here.
	(lc_ctype_charset): Set to "ASCII" by default.
	(lc_message_charset): Ditto.
	(_setlocale_r): Don't set _current_category and _current_locale.
	(loadlocale): Add Cygwin codepage support.  On _MB_CAPABLE
	systems, set __mbtowc and __wctomb function pointers to function
	corresponding with current charset.  Don't allow non-existant
	ISO-8859-12 charset.  Add support for Windows singlebyte codepages.
	On Cygwin, add support for GBK, CP949, and BIG5.  On Cygwin,
	call __set_ctype() in case the catorgy is LC_CTYPE.  Don't set
	_current_category and _current_locale.
	* libc/stdlib/Makefile.am (GENERAL_SOURCES): Add sb_charsets.c.
	* libc/stdlib/Makefile.in: Regenerate.
	* libc/stdlib/local.h: Add prototype for __locale_charset.
	Add prototypes for __mbtowc and __wctomb pointers.
	Add prototypes for charset-specific _wctomb_r and _mbtowc_r
	functions.
	Declare tables and functions from sb_charsets.c.
	* libc/stdlib/mbtowc_r.c (__mbtowc): Define.  Set to __ascii_mbtowc
	by default.
	(_mbtowc_r): Just call __mbtowc from here.
	(__ascii_mbtowc): New function.
	(__iso_mbtowc): New function.
	(__cp_mbtowc): New function.
	(__utf8_mbtowc): New function.
	(__sjis_mbtowc): New function.  Disable on Cygwin.
	(__eucjp_mbtowc): New function.  Disable on Cygwin.
	(__jis_mbtowc): New function.  Disable on Cygwin.
	* libc/stdlib/sb_charsets.c: New file, adding singlebyte to UTF
	conversion tables for all ISO and CP charsets.
	(__iso_8859_index): New function.
	(__cp_index): New function.
	* libc/stdlib/wctomb_r.c (__wctomb): Define.  Set to __ascii_wctomb
	by default.
	(_wctomb_r): Just call __wctomb from here.
	(__ascii_wctomb): New function.
	(__utf8_wctomb): New function.
	(__sjis_wctomb): New function.  Disable on Cygwin.
	(__eucjp_wctomb): New function.  Disable on Cygwin.
	(__jis_wctomb): New function.  Disable on Cygwin.
	(__iso_wctomb): New function.
	(__cp_wctomb): New function.
2009-03-24 10:13:27 +00:00
..
Makefile.am 2006-05-09 Jeff Johnston <jjohnstn@redhat.com> 2006-05-09 21:53:35 +00:00
Makefile.in * configure: Regenerate for new libtool. 2008-09-29 15:40:48 +00:00
_tolower.c import newlib-2000-02-17 snapshot 2000-02-17 19:39:52 +00:00
_toupper.c import newlib-2000-02-17 snapshot 2000-02-17 19:39:52 +00:00
ctype.tex 2005-10-28 Bob Wilson <bob.wilson@acm.org> 2005-10-28 21:33:23 +00:00
ctype_.c 2008-07-21 Jeff Johnston <jjohnstn@redhat.com> 2008-07-21 21:28:34 +00:00
isalnum.c 2008-07-21 Jeff Johnston <jjohnstn@redhat.com> 2008-07-21 21:28:34 +00:00
isalpha.c 2008-07-21 Jeff Johnston <jjohnstn@redhat.com> 2008-07-21 21:28:34 +00:00
isascii.c import newlib-2000-02-17 snapshot 2000-02-17 19:39:52 +00:00
isblank.c 2008-10-15 Craig Howland <howland@LGSInnovations.com> 2008-10-15 20:36:26 +00:00
iscntrl.c 2008-07-21 Jeff Johnston <jjohnstn@redhat.com> 2008-07-21 21:28:34 +00:00
isdigit.c 2008-07-21 Jeff Johnston <jjohnstn@redhat.com> 2008-07-21 21:28:34 +00:00
islower.c 2008-07-21 Jeff Johnston <jjohnstn@redhat.com> 2008-07-21 21:28:34 +00:00
isprint.c 2008-07-21 Jeff Johnston <jjohnstn@redhat.com> 2008-07-21 21:28:34 +00:00
ispunct.c 2008-07-21 Jeff Johnston <jjohnstn@redhat.com> 2008-07-21 21:28:34 +00:00
isspace.c 2008-07-21 Jeff Johnston <jjohnstn@redhat.com> 2008-07-21 21:28:34 +00:00
isupper.c 2008-07-21 Jeff Johnston <jjohnstn@redhat.com> 2008-07-21 21:28:34 +00:00
iswalnum.c 2005-10-28 Bob Wilson <bob.wilson@acm.org> 2005-10-28 21:33:23 +00:00
iswalpha.c * libc/ctype/iswalpha.c: Handle all wchar_t as unicode on 2009-03-24 10:13:27 +00:00
iswblank.c * libc/ctype/iswalpha.c: Handle all wchar_t as unicode on 2009-03-24 10:13:27 +00:00
iswcntrl.c * libc/ctype/iswalpha.c: Handle all wchar_t as unicode on 2009-03-24 10:13:27 +00:00
iswctype.c 2004-01-08 Joel Sherrill <joel@oarcorp.com> 2004-01-08 19:33:13 +00:00
iswdigit.c 2005-10-28 Bob Wilson <bob.wilson@acm.org> 2005-10-28 21:33:23 +00:00
iswgraph.c 2005-10-28 Bob Wilson <bob.wilson@acm.org> 2005-10-28 21:33:23 +00:00
iswlower.c 2005-10-28 Bob Wilson <bob.wilson@acm.org> 2005-10-28 21:33:23 +00:00
iswprint.c * libc/ctype/iswalpha.c: Handle all wchar_t as unicode on 2009-03-24 10:13:27 +00:00
iswpunct.c * libc/ctype/iswalpha.c: Handle all wchar_t as unicode on 2009-03-24 10:13:27 +00:00
iswspace.c * libc/ctype/iswalpha.c: Handle all wchar_t as unicode on 2009-03-24 10:13:27 +00:00
iswupper.c 2005-10-28 Bob Wilson <bob.wilson@acm.org> 2005-10-28 21:33:23 +00:00
iswxdigit.c 2005-10-28 Bob Wilson <bob.wilson@acm.org> 2005-10-28 21:33:23 +00:00
isxdigit.c 2008-07-21 Jeff Johnston <jjohnstn@redhat.com> 2008-07-21 21:28:34 +00:00
jp2uc.c * libc/ctype/iswalpha.c: Handle all wchar_t as unicode on 2009-03-24 10:13:27 +00:00
jp2uc.h 2002-09-27 Jeff Johnston <jjohnstn@redhat.com> 2002-09-27 20:17:52 +00:00
local.h * libc/locale/locale.c (_setlocale_r): New implementation based on 2009-03-03 09:28:45 +00:00
toascii.c import newlib-2000-02-17 snapshot 2000-02-17 19:39:52 +00:00
tolower.c 2005-10-28 Bob Wilson <bob.wilson@acm.org> 2005-10-28 21:33:23 +00:00
toupper.c 2005-10-28 Bob Wilson <bob.wilson@acm.org> 2005-10-28 21:33:23 +00:00
towctrans.c 2005-10-28 Bob Wilson <bob.wilson@acm.org> 2005-10-28 21:33:23 +00:00
towlower.c * libc/ctype/iswalpha.c: Handle all wchar_t as unicode on 2009-03-24 10:13:27 +00:00
towupper.c * libc/ctype/iswalpha.c: Handle all wchar_t as unicode on 2009-03-24 10:13:27 +00:00
utf8alpha.h 2002-09-20 Jeff Johnston <jjohnstn@redhat.com> 2002-09-20 20:13:11 +00:00
utf8print.h 2002-09-20 Jeff Johnston <jjohnstn@redhat.com> 2002-09-20 20:13:11 +00:00
utf8punct.h 2002-09-20 Jeff Johnston <jjohnstn@redhat.com> 2002-09-20 20:13:11 +00:00
wctrans.c 2002-09-20 Jeff Johnston <jjohnstn@redhat.com> 2002-09-20 20:13:11 +00:00
wctype.c * libc/ctype/wctype.c (_DEFUN): Remove empty default case, as 2003-09-05 02:21:41 +00:00