mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-08 00:38:39 +09:00
Issue #1971 - Part 2: Update ICU source to 63.2.
This commit is contained in:
parent
8df84683be
commit
1e69214382
3160 changed files with 275815 additions and 234203 deletions
|
|
@ -1,4 +1,4 @@
|
|||
// Copyright (C) 2016 and later: Unicode, Inc. and others.
|
||||
// © 2016 and later: Unicode, Inc. and others.
|
||||
// License & terms of use: http://www.unicode.org/copyright.html
|
||||
/*
|
||||
******************************************************************************
|
||||
|
|
@ -8,7 +8,7 @@
|
|||
*
|
||||
******************************************************************************
|
||||
* file name: ushape.cpp
|
||||
* encoding: US-ASCII
|
||||
* encoding: UTF-8
|
||||
* tab size: 8 (not used)
|
||||
* indentation:4
|
||||
*
|
||||
|
|
@ -342,18 +342,16 @@ static void
|
|||
_shapeToArabicDigitsWithContext(UChar *s, int32_t length,
|
||||
UChar digitBase,
|
||||
UBool isLogical, UBool lastStrongWasAL) {
|
||||
const UBiDiProps *bdp;
|
||||
int32_t i;
|
||||
UChar c;
|
||||
|
||||
bdp=ubidi_getSingleton();
|
||||
digitBase-=0x30;
|
||||
|
||||
/* the iteration direction depends on the type of input */
|
||||
if(isLogical) {
|
||||
for(i=0; i<length; ++i) {
|
||||
c=s[i];
|
||||
switch(ubidi_getClass(bdp, c)) {
|
||||
switch(ubidi_getClass(c)) {
|
||||
case U_LEFT_TO_RIGHT: /* L */
|
||||
case U_RIGHT_TO_LEFT: /* R */
|
||||
lastStrongWasAL=FALSE;
|
||||
|
|
@ -373,7 +371,7 @@ _shapeToArabicDigitsWithContext(UChar *s, int32_t length,
|
|||
} else {
|
||||
for(i=length; i>0; /* pre-decrement in the body */) {
|
||||
c=s[--i];
|
||||
switch(ubidi_getClass(bdp, c)) {
|
||||
switch(ubidi_getClass(c)) {
|
||||
case U_LEFT_TO_RIGHT: /* L */
|
||||
case U_RIGHT_TO_LEFT: /* R */
|
||||
lastStrongWasAL=FALSE;
|
||||
|
|
@ -1325,7 +1323,7 @@ shapeUnicode(UChar *dest, int32_t sourceLength,
|
|||
/* to ensure the array index is within the range */
|
||||
U_ASSERT(dest[i] >= 0x064Bu
|
||||
&& dest[i]-0x064Bu < UPRV_LENGTHOF(IrrelevantPos));
|
||||
dest[i] = 0xFE70 + IrrelevantPos[(dest[i] - 0x064B)] + Shape;
|
||||
dest[i] = 0xFE70 + IrrelevantPos[(dest[i] - 0x064B)] + static_cast<UChar>(Shape);
|
||||
}
|
||||
}else if ((currLink & APRESENT) > 0) {
|
||||
dest[i] = (UChar)(0xFB50 + (currLink >> 8) + Shape);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue