unigbrk: Fix uc_graphemeclusterbreak_property(), add comprehensive test.
authorBen Pfaff <blp@cs.stanford.edu>
Sat, 1 Jan 2011 16:25:31 +0000 (08:25 -0800)
committerBen Pfaff <blp@cs.stanford.edu>
Sat, 1 Jan 2011 16:25:31 +0000 (08:25 -0800)
commit82c48f3071bf6bed40b7914fc87732c491b9d548
tree1c8994385b1f0145d198adea0754960da45c12c8
parent579e321712b6b9cb8d96978fa10487c8d7e5da4a
unigbrk: Fix uc_graphemeclusterbreak_property(), add comprehensive test.

gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
* lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
modified how this file was generated before I initially submitted
the module, but failed to regenerate it.  This meant that several
of the level2 entries were wrong.
* lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
Remove the division-by-2 that is folded into the table now that
gbrkprop.h has been regenerated properly.  Now -1 entries are
handled correctly.

New module 'unigbrk/uc-gbrk-prop-tests'.
* modules/unigbrk/uc-gbrk-prop-tests: New file.
* lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
* tests/unigbrk/test-uc-gbrk-prop.c: New file.
* tests/unigbrk/test-uc-gbrk-prop.h: New file.
ChangeLog
lib/gen-uni-tables.c
lib/unigbrk/gbrkprop.h
lib/unigbrk/uc-gbrk-prop.c
modules/unigbrk/uc-gbrk-prop-tests [new file with mode: 0644]
tests/unigbrk/test-uc-gbrk-prop.c [new file with mode: 0644]
tests/unigbrk/test-uc-gbrk-prop.h [new file with mode: 0644]