unictype/joiningtype-byname: Recognize long names as well.
authorBruno Haible <bruno@clisp.org>
Sat, 26 Mar 2011 12:38:00 +0000 (13:38 +0100)
committerBruno Haible <bruno@clisp.org>
Sat, 26 Mar 2011 12:38:00 +0000 (13:38 +0100)
commit81aea5d9bec07d25f49b227d80605f46986397b5
treea1f96412091c40a6cd24bc92efb4527ea4fbcf74
parent69c1421980ea9c5e26f51079b467be67886bcead
unictype/joiningtype-byname: Recognize long names as well.

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