diff options
author | Eli Zaretskii <eliz@gnu.org> | 2015-02-28 14:25:35 +0200 |
---|---|---|
committer | Eli Zaretskii <eliz@gnu.org> | 2015-02-28 14:25:35 +0200 |
commit | 1a50945fa4c666ae2ab5cd9419d23ad063ea1249 (patch) | |
tree | e44604490fdf92f8912679a30eec7bb7ecb1929f /src/character.h | |
parent | 31ecbf8d513540855aa07588f6746942aed453ba (diff) | |
download | emacs-1a50945fa4c666ae2ab5cd9419d23ad063ea1249.tar.gz |
Improve [:alpha:] and [:alnum:] for multibyte characters (Bug#19878)
src/character.c (alphabeticp, decimalnump): New functions.
src/character.h (alphabeticp, decimalnump): Add prototypes.
src/regex.c (ISALNUM, ISALPHA): Check Unicode character properties
for multibyte characters by calling alphabeticp and decimalnump.
(BIT_ALPHA, BIT_ALNUM): New bit masks.
(re_wctype_to_bit): Return them when the class is RECC_ALPHA or
RECC_ALNUM.
(re_match_2_internal): Call ISALPHA and ISALNUM when appropriate.
doc/lispref/searching.texi (Char Classes): Update the documentation of
[:alpha:] and [:alnum:].
etc/NEWS: Mention the changes in [:alpha:] and [:alnum:].
Diffstat (limited to 'src/character.h')
-rw-r--r-- | src/character.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/character.h b/src/character.h index 5043880cb42..7d902952db6 100644 --- a/src/character.h +++ b/src/character.h @@ -660,6 +660,9 @@ extern ptrdiff_t lisp_string_width (Lisp_Object, ptrdiff_t, extern Lisp_Object Vchar_unify_table; extern Lisp_Object string_escape_byte8 (Lisp_Object); +extern bool alphabeticp (int); +extern bool decimalnump (int); + /* Return a translation table of id number ID. */ #define GET_TRANSLATION_TABLE(id) \ (XCDR (XVECTOR (Vtranslation_table_vector)->contents[(id)])) |