]> Savannah Git Hosting - gnulib.git/commit
uniwidth: Optimize.
authorBruno Haible <bruno@clisp.org>
Fri, 31 Dec 2021 22:53:39 +0000 (23:53 +0100)
committerBruno Haible <bruno@clisp.org>
Fri, 31 Dec 2021 22:53:39 +0000 (23:53 +0100)
commitf698ea718e839e373702664e54cf240fe3682f34
tree12db511c4663a69e7f3c098f3d27236c46905add
parent14db2b71b5bd05b94ec6126617fd32cd5f1016cd
uniwidth: Optimize.

* lib/gen-uni-tables.c (output_nonspacing_property): Add version
parameter. Emit the usual boilerplate header for generated files.
(is_width2): New function, based on lib/uniwidth/width.c.
(output_width2_property): New function.
(main): Create uniwidth/width0.h instead of uniwidth/width.c.part.
Create uniwidth/width2.h.
* lib/uniwidth/width.c: Include width0.h, width2.h, bitmap.h.
(nonspacing_table_data, nonspacing_table_ind): Remove here.
(uc_width): Replace the double-width character with an u_width2 bitmap
lookup.
* modules/uniwidth/width (Files): Add lib/uniwidth/width0.h,
lib/uniwidth/width2.h, lib/unictype/bitmap.h.
ChangeLog
lib/gen-uni-tables.c
lib/uniwidth/width.c
lib/uniwidth/width0.h [new file with mode: 0644]
lib/uniwidth/width2.h [new file with mode: 0644]
modules/uniwidth/width