1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-08-08 17:42:12 +03:00
* ctype/Versions: Add __ctype32_tolower and __ctype32_toupper.
	* ctype/ctype-info.c: Define __ctype32_tolower and __ctype32_toupper.
	* locale/C-ctype.c: Add _nl_C_LC_CTYPE_toupper32 and
	_nl_C_LC_CTYPE_tolower32 tables.
	Don't compile it names of 14652 classes and maps.
	* locale/langinfo.h: Define _NL_CTYPE_TOUPPER32 and
	_NL_CTYPE_TOLOWER32.
	* locale/lc-ctype.c (_nl_postload_ctype): Initialize __ctype32_toupper
	and __ctype32_tolower.
	* locale/programs/ld-ctype.c (struct locale_ctype_t): Add map32.
	(ctype_output): Write out map32 values.
	(allocate_arrays): Compute mapping tables correctly.
	* wctype/wcfuncs.c (towlower): Use __ctype32_tolower.
	(towupper): Use __ctype32_toupper.
	* wctype/wctype.h: Optimize towupper and towlower for values < 256.
This commit is contained in:
Ulrich Drepper
1999-12-08 19:53:27 +00:00
parent 85cb60ffd7
commit 49f2be5b0e
9 changed files with 168 additions and 23 deletions

View File

@@ -25,6 +25,8 @@
/* If the program is compiled without optimization the following declaration
is not visible in the header. */
extern unsigned int *__ctype32_b;
extern const uint32_t *__ctype32_toupper;
extern const uint32_t *__ctype32_tolower;
/* Provide real-function versions of all the wctype macros. */
@@ -76,7 +78,7 @@ wint_t
/* Character is not known. Default action is to simply return it. */
return wc;
return (wint_t) __ctype_tolower[idx];
return (wint_t) __ctype32_tolower[idx];
}
wint_t
@@ -90,5 +92,5 @@ wint_t
/* Character is not known. Default action is to simply return it. */
return wc;
return (wint_t) __ctype_toupper[idx];
return (wint_t) __ctype32_toupper[idx];
}