forked from cory/tildefriends
Merge branches/quickjs to trunk. This is the way.
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3621 ed5197a5-7fde-0310-b194-c3ffbd925b24
This commit is contained in:
26
deps/quickjs/libunicode.c
vendored
26
deps/quickjs/libunicode.c
vendored
@@ -527,7 +527,13 @@ static int unicode_decomp_entry(uint32_t *res, uint32_t c,
|
||||
} else {
|
||||
d = unicode_decomp_data + unicode_decomp_table2[idx];
|
||||
switch(type) {
|
||||
case DECOMP_TYPE_L1 ... DECOMP_TYPE_L7:
|
||||
case DECOMP_TYPE_L1:
|
||||
case DECOMP_TYPE_L2:
|
||||
case DECOMP_TYPE_L3:
|
||||
case DECOMP_TYPE_L4:
|
||||
case DECOMP_TYPE_L5:
|
||||
case DECOMP_TYPE_L6:
|
||||
case DECOMP_TYPE_L7:
|
||||
l = type - DECOMP_TYPE_L1 + 1;
|
||||
d += (c - code) * l * 2;
|
||||
for(i = 0; i < l; i++) {
|
||||
@@ -535,7 +541,8 @@ static int unicode_decomp_entry(uint32_t *res, uint32_t c,
|
||||
return 0;
|
||||
}
|
||||
return l;
|
||||
case DECOMP_TYPE_LL1 ... DECOMP_TYPE_LL2:
|
||||
case DECOMP_TYPE_LL1:
|
||||
case DECOMP_TYPE_LL2:
|
||||
{
|
||||
uint32_t k, p;
|
||||
l = type - DECOMP_TYPE_LL1 + 1;
|
||||
@@ -551,7 +558,11 @@ static int unicode_decomp_entry(uint32_t *res, uint32_t c,
|
||||
}
|
||||
}
|
||||
return l;
|
||||
case DECOMP_TYPE_S1 ... DECOMP_TYPE_S5:
|
||||
case DECOMP_TYPE_S1:
|
||||
case DECOMP_TYPE_S2:
|
||||
case DECOMP_TYPE_S3:
|
||||
case DECOMP_TYPE_S4:
|
||||
case DECOMP_TYPE_S5:
|
||||
l = type - DECOMP_TYPE_S1 + 1;
|
||||
d += (c - code) * l;
|
||||
for(i = 0; i < l; i++) {
|
||||
@@ -582,7 +593,14 @@ static int unicode_decomp_entry(uint32_t *res, uint32_t c,
|
||||
case DECOMP_TYPE_B18:
|
||||
l = 18;
|
||||
goto decomp_type_b;
|
||||
case DECOMP_TYPE_B1 ... DECOMP_TYPE_B8:
|
||||
case DECOMP_TYPE_B1:
|
||||
case DECOMP_TYPE_B2:
|
||||
case DECOMP_TYPE_B3:
|
||||
case DECOMP_TYPE_B4:
|
||||
case DECOMP_TYPE_B5:
|
||||
case DECOMP_TYPE_B6:
|
||||
case DECOMP_TYPE_B7:
|
||||
case DECOMP_TYPE_B8:
|
||||
l = type - DECOMP_TYPE_B1 + 1;
|
||||
decomp_type_b:
|
||||
{
|
||||
|
Reference in New Issue
Block a user