]> git.eshelyaron.com Git - emacs.git/commit
Improve [:alpha:] and [:alnum:] for multibyte characters (Bug#19878)
authorEli Zaretskii <eliz@gnu.org>
Sat, 28 Feb 2015 12:25:35 +0000 (14:25 +0200)
committerEli Zaretskii <eliz@gnu.org>
Sat, 28 Feb 2015 12:25:35 +0000 (14:25 +0200)
commit1a50945fa4c666ae2ab5cd9419d23ad063ea1249
treee44604490fdf92f8912679a30eec7bb7ecb1929f
parent31ecbf8d513540855aa07588f6746942aed453ba
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:].
doc/lispref/ChangeLog
doc/lispref/searching.texi
etc/NEWS
src/ChangeLog
src/character.c
src/character.h
src/regex.c