mirror of
https://github.com/bellard/quickjs.git
synced 2025-09-30 23:07:42 +03:00
updated to unicode 16.0.0 (bnoordhuis) - updated test262
This commit is contained in:
@@ -625,7 +625,7 @@ void parse_derived_core_properties(const char *filename)
|
||||
p++;
|
||||
p += strspn(p, " \t");
|
||||
q = buf;
|
||||
while (*p != '\0' && *p != ' ' && *p != '#' && *p != '\t') {
|
||||
while (*p != '\0' && *p != ' ' && *p != '#' && *p != '\t' && *p != ';') {
|
||||
if ((q - buf) < sizeof(buf) - 1)
|
||||
*q++ = *p;
|
||||
p++;
|
||||
@@ -1117,6 +1117,24 @@ void find_run_type(TableEntry *te, CCInfo *tab, int code)
|
||||
te->ext_data[1] = ci->u_data[1];
|
||||
te->ext_data[2] = ci->u_data[2];
|
||||
te->ext_len = 3;
|
||||
} else if (ci->u_len == 2 && ci->l_len == 0 && ci->f_len == 1) {
|
||||
// U+FB05 LATIN SMALL LIGATURE LONG S T
|
||||
assert(code == 0xFB05);
|
||||
te->len = 1;
|
||||
te->type = RUN_TYPE_UF_EXT2;
|
||||
te->ext_data[0] = ci->u_data[0];
|
||||
te->ext_data[1] = ci->u_data[1];
|
||||
te->ext_len = 2;
|
||||
} else if (ci->u_len == 3 && ci->l_len == 0 && ci->f_len == 1) {
|
||||
// U+1FD3 GREEK SMALL LETTER IOTA WITH DIALYTIKA AND OXIA or
|
||||
// U+1FE3 GREEK SMALL LETTER UPSILON WITH DIALYTIKA AND OXIA
|
||||
assert(code == 0x1FD3 || code == 0x1FE3);
|
||||
te->len = 1;
|
||||
te->type = RUN_TYPE_UF_EXT3;
|
||||
te->ext_data[0] = ci->u_data[0];
|
||||
te->ext_data[1] = ci->u_data[1];
|
||||
te->ext_data[2] = ci->u_data[2];
|
||||
te->ext_len = 3;
|
||||
} else {
|
||||
printf("unsupported encoding case:\n");
|
||||
dump_cc_info(ci, code);
|
||||
|
Reference in New Issue
Block a user