mirror of
https://sourceware.org/git/glibc.git
synced 2025-08-08 17:42:12 +03:00
Update.
* posix/regex_internal.h: Add forward declaration of re_dfa_t. Replace last two parameters of re_string_allocate and re_string_construct with pointer to DFA. (re_dfa_t): Add map_notascii field. * posix/regcomp.c (re_compile_internal): Add call of re_string_construct. (init_dfa): Initialize mpa_notascii. * posix/regex_internal.c: Adjust definitions of re_string_allocate and re_string_construct. Pass DFA to re_string_construct. Adjust definition. Initialize map_notascii field. (build_wcs_upper_buffer): If map_notascii is zero use simplfied method to map ASCII values to upper case. * posix/regex.c: Include localeinfo.h. * posix/regexec.c: Adjust call of re_string_allocate. * locale/langinfo.h: Add _NL_CTYPE_MAP_TO_NONASCII. * locale/localeinfo.h (LIMAGIC): Change value. * locale/categories.def. Add entry for _NL_CTYPE_MAP_TO_NONASCII. * locale/C-ctype.h: Likewise. * locale/programs/ld-ctype.c: Compute whether any mapping maps from ASCII to non-ASCII value. Write out that value.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
/* Copyright (C) 1995-1999, 2000, 2001, 2002 Free Software Foundation, Inc.
|
||||
/* Copyright (C) 1995-2002, 2003 Free Software Foundation, Inc.
|
||||
This file is part of the GNU C Library.
|
||||
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1995.
|
||||
|
||||
@@ -528,7 +528,7 @@ _nl_C_LC_CTYPE_width attribute_hidden =
|
||||
};
|
||||
|
||||
/* Number of fields with fixed meanings, starting at 0. */
|
||||
#define NR_FIXED 70
|
||||
#define NR_FIXED 71
|
||||
/* Number of class fields, starting at CLASS_OFFSET. */
|
||||
#define NR_CLASSES 12
|
||||
/* Number of map fields, starting at MAP_OFFSET. */
|
||||
@@ -665,6 +665,8 @@ const struct locale_data _nl_C_LC_CTYPE attribute_hidden =
|
||||
{ .word = 0 },
|
||||
/* _NL_CTYPE_TRANSLIT_IGNORE */
|
||||
{ .wstr = NULL },
|
||||
/* _NL_CTYPE_MAP_TO_NONASCII */
|
||||
{ .word = 0 },
|
||||
/* NR_CLASSES wctype_tables */
|
||||
{ .string = (const char *) _nl_C_LC_CTYPE_class_upper.header },
|
||||
{ .string = (const char *) _nl_C_LC_CTYPE_class_lower.header },
|
||||
|
Reference in New Issue
Block a user