summaryrefslogtreecommitdiff
path: root/tests/unicase/test-uc_totitle.c
diff options
context:
space:
mode:
authorDaiki Ueno <ueno@gnu.org>2017-11-27 11:34:25 +0100
committerDaiki Ueno <dueno@redhat.com>2017-11-27 11:34:25 +0100
commit19f18ecffa68391c6d0babc3568672108884bbc0 (patch)
treeeb1b23f3ce024c42df42a33ab8deb052856f6cc7 /tests/unicase/test-uc_totitle.c
parentd5aa1da12243e1ac20800b9ffc1be93b13fe2f5b (diff)
downloadgnulib-19f18ecffa68391c6d0babc3568672108884bbc0.tar.gz
libunistring: update to Unicode 9.0.0
* lib/gen-uni-tables.c (fill_properties): Recognize Sentence_Terminal and Prepended_Concatenation_Mark. (is_property_default_ignorable_code_point): Exclude U+08E2. (fill_arabicshaping): Allow missing whitespace when parsing; recognize "AFRICAN FEH", "AFRICAN QAF", and "AFRICAN MOON". (output_blocks): Increase the element size of the level1 table to accommodate more blocks. (get_lbp): Recognize ZWJ, E_Base, and E_Modifier characters; Update each class according to the standard. (get_wbp): Recognize ZWJ, E_Base, E_Modifier, Glue_After_Zwj, and E_Base_GAZ characters. (output_gbp_table): Recognize ZWJ, E_Base, E_Modifier, Glue_After_Zwj, and E_Base_GAZ characters. * lib/unictype.in.h (UC_JOINING_GROUP_AFRICAN_FEH) (UC_JOINING_GROUP_AFRICAN_QAF, UC_JOINING_GROUP_AFRICAN_MOON): New enum value. * lib/unilbrk/lbrktables.h (LBP_ZWJ, LBP_EB, LBP_EM): New enum value. * lib/unilbrk/lbrktables.c (unilbrk_table): Extend the table with LBP_ZWJ, LBP_EB, and LBP_EM. * lib/uniwbrk.in.h (WBP_ZWJ, WBP_EB, WBP_EM, WBP_GAZ, WBP_EBG): New enum value. * lib/uniwbrk/u-wordbreaks.h: Implement WB3c, WB15, and WB16. * lib/uniwbrk/wbrktable.h (uniwbrk_prop_index): New variable declaration. * lib/uniwbrk/wbrktable.c (uniwbrk_prop_index): New variable. (uniwbrk_table): Implement WB14. * tests/uniwbrk/test-uc-wordbreaks.c (wordbreakproperty_to_string): Check WBP_ZWJ, WBP_EB, WBP_EM, WBP_GAZ, and WBP_EBG. * modules/unigbrk/u{32,16,8}-grapheme-breaks: No longer depend on uc-is-grapheme-break. * modules/unigbrk/uc-grapheme-breaks: New module. * modules/unigbrk/uc-grapheme-breaks-tests: New module. * lib/unigbrk.in.h (GBP_ZWJ, GBP_EB, GBP_EM, GBP_GAZ, GBP_EBG): New enum value. (uc_grapheme_breaks): New function, replacing uc_is_grapheme_break. * lib/unigbrk/u-grapheme-breaks.h: New file. * lib/unigbrk/u{32,16,8}-grapheme-breaks.c: Rewrite using u-grapheme-breaks.h instead of uc_is_grapheme_break. * lib/unigbrk/uc-grapheme-breaks.c: New file. * lib/unigbrk/uc-is-grapheme-break.c: Partially update to TR29 rev 29. * tests/unigbrk/test-uc-gbrk-prop.c (graphemebreakproperty_to_string): Check GBP_ZWJ, GBP_EB, GBP_EM, GBP_GAZ, and GBP_EBG. * tests/unigbrk/test-uc-grapheme-breaks.c: New test. * tests/unigbrk/test-uc-is-grapheme-break.c (graphemebreakproperty_to_string): Check GBP_ZWJ, GBP_EB, GBP_EM, GBP_GAZ, and GBP_EBG. (main): Skip unsupported rules involving 3 or more characters, namely GB10, GB12, and GB13. * lib/uniwidth/width.c (nonspacing_table_data): Update. * all generated files under lib/uni* and tests/uni*: Regenerate. * all the dependant modules: Bump version.
Diffstat (limited to 'tests/unicase/test-uc_totitle.c')
-rw-r--r--tests/unicase/test-uc_totitle.c84
1 files changed, 82 insertions, 2 deletions
diff --git a/tests/unicase/test-uc_totitle.c b/tests/unicase/test-uc_totitle.c
index 90958c7611..5fa1266632 100644
--- a/tests/unicase/test-uc_totitle.c
+++ b/tests/unicase/test-uc_totitle.c
@@ -15,7 +15,7 @@
You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>. */
-/* Generated automatically by gen-uni-tables.c for Unicode 8.0.0. */
+/* Generated automatically by gen-uni-tables.c for Unicode 9.0.0. */
#include "test-mapping-part1.h"
@@ -243,6 +243,7 @@
{ 0x0266, 0xA7AA },
{ 0x0268, 0x0197 },
{ 0x0269, 0x0196 },
+ { 0x026A, 0xA7AE },
{ 0x026B, 0x2C62 },
{ 0x026C, 0xA7AD },
{ 0x026F, 0x019C },
@@ -518,6 +519,15 @@
{ 0x13FB, 0x13F3 },
{ 0x13FC, 0x13F4 },
{ 0x13FD, 0x13F5 },
+ { 0x1C80, 0x0412 },
+ { 0x1C81, 0x0414 },
+ { 0x1C82, 0x041E },
+ { 0x1C83, 0x0421 },
+ { 0x1C84, 0x0422 },
+ { 0x1C85, 0x0422 },
+ { 0x1C86, 0x042A },
+ { 0x1C87, 0x0462 },
+ { 0x1C88, 0xA64A },
{ 0x1D79, 0xA77D },
{ 0x1D7D, 0x2C63 },
{ 0x1E01, 0x1E00 },
@@ -1177,6 +1187,42 @@
{ 0x1044D, 0x10425 },
{ 0x1044E, 0x10426 },
{ 0x1044F, 0x10427 },
+ { 0x104D8, 0x104B0 },
+ { 0x104D9, 0x104B1 },
+ { 0x104DA, 0x104B2 },
+ { 0x104DB, 0x104B3 },
+ { 0x104DC, 0x104B4 },
+ { 0x104DD, 0x104B5 },
+ { 0x104DE, 0x104B6 },
+ { 0x104DF, 0x104B7 },
+ { 0x104E0, 0x104B8 },
+ { 0x104E1, 0x104B9 },
+ { 0x104E2, 0x104BA },
+ { 0x104E3, 0x104BB },
+ { 0x104E4, 0x104BC },
+ { 0x104E5, 0x104BD },
+ { 0x104E6, 0x104BE },
+ { 0x104E7, 0x104BF },
+ { 0x104E8, 0x104C0 },
+ { 0x104E9, 0x104C1 },
+ { 0x104EA, 0x104C2 },
+ { 0x104EB, 0x104C3 },
+ { 0x104EC, 0x104C4 },
+ { 0x104ED, 0x104C5 },
+ { 0x104EE, 0x104C6 },
+ { 0x104EF, 0x104C7 },
+ { 0x104F0, 0x104C8 },
+ { 0x104F1, 0x104C9 },
+ { 0x104F2, 0x104CA },
+ { 0x104F3, 0x104CB },
+ { 0x104F4, 0x104CC },
+ { 0x104F5, 0x104CD },
+ { 0x104F6, 0x104CE },
+ { 0x104F7, 0x104CF },
+ { 0x104F8, 0x104D0 },
+ { 0x104F9, 0x104D1 },
+ { 0x104FA, 0x104D2 },
+ { 0x104FB, 0x104D3 },
{ 0x10CC0, 0x10C80 },
{ 0x10CC1, 0x10C81 },
{ 0x10CC2, 0x10C82 },
@@ -1259,7 +1305,41 @@
{ 0x118DC, 0x118BC },
{ 0x118DD, 0x118BD },
{ 0x118DE, 0x118BE },
- { 0x118DF, 0x118BF }
+ { 0x118DF, 0x118BF },
+ { 0x1E922, 0x1E900 },
+ { 0x1E923, 0x1E901 },
+ { 0x1E924, 0x1E902 },
+ { 0x1E925, 0x1E903 },
+ { 0x1E926, 0x1E904 },
+ { 0x1E927, 0x1E905 },
+ { 0x1E928, 0x1E906 },
+ { 0x1E929, 0x1E907 },
+ { 0x1E92A, 0x1E908 },
+ { 0x1E92B, 0x1E909 },
+ { 0x1E92C, 0x1E90A },
+ { 0x1E92D, 0x1E90B },
+ { 0x1E92E, 0x1E90C },
+ { 0x1E92F, 0x1E90D },
+ { 0x1E930, 0x1E90E },
+ { 0x1E931, 0x1E90F },
+ { 0x1E932, 0x1E910 },
+ { 0x1E933, 0x1E911 },
+ { 0x1E934, 0x1E912 },
+ { 0x1E935, 0x1E913 },
+ { 0x1E936, 0x1E914 },
+ { 0x1E937, 0x1E915 },
+ { 0x1E938, 0x1E916 },
+ { 0x1E939, 0x1E917 },
+ { 0x1E93A, 0x1E918 },
+ { 0x1E93B, 0x1E919 },
+ { 0x1E93C, 0x1E91A },
+ { 0x1E93D, 0x1E91B },
+ { 0x1E93E, 0x1E91C },
+ { 0x1E93F, 0x1E91D },
+ { 0x1E940, 0x1E91E },
+ { 0x1E941, 0x1E91F },
+ { 0x1E942, 0x1E920 },
+ { 0x1E943, 0x1E921 }
#define MAP(c) uc_totitle (c)
#include "test-mapping-part2.h"