unictype/bidiclass-byname: Recognize long names as well.
authorBruno Haible <bruno@clisp.org>
Sat, 26 Mar 2011 11:49:04 +0000 (12:49 +0100)
committerBruno Haible <bruno@clisp.org>
Sat, 26 Mar 2011 11:49:04 +0000 (12:49 +0100)
commitef51234c7d0d7fb58f507b093f2f1d8aa4b8ea4b
tree8e1aed8574eacc3a83036d19981af2d4fa16aacc
parentf2aa61111029cd88c53f84456becfffc7cf74071
unictype/bidiclass-byname: Recognize long names as well.

* lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
name.
* lib/unictype/bidi_byname.c: Include <string.h>,
unictype/bidi_byname.h.
(uc_bidi_class_byname): Use uc_bidi_class_lookup.
* lib/unictype/bidi_byname.gperf: New file.
* modules/unictype/bidiclass-byname (Files): Add
lib/unictype/bidi_byname.gperf.
(Depends-on): Add gperf.
(Makefile.am): Add rule for generating unictype/bidi_byname.h.
* tests/unictype/test-bidi_byname.c (main): Test the recognition of
long names.
ChangeLog
lib/unictype.in.h
lib/unictype/bidi_byname.c
lib/unictype/bidi_byname.gperf [new file with mode: 0644]
modules/unictype/bidiclass-byname
tests/unictype/test-bidi_byname.c