mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-07 06:25:30 +00:00
ICU-3215 bidi should respect explicitly set base line direction
X-SVN-Rev: 14688
This commit is contained in:
parent
5c397b73b3
commit
91e47d74d3
2 changed files with 20 additions and 1 deletions
|
@ -305,6 +305,8 @@ getDirProps(UBiDi *pBiDi, const UChar *text) {
|
|||
break;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
flags|=DIRPROP_FLAG_LR(pBiDi->paraLevel);
|
||||
}
|
||||
|
||||
/* get the rest of the directional properties and the flags bits */
|
||||
|
|
|
@ -343,6 +343,21 @@ testVisualMap21[]={
|
|||
6, 5, 4, 3, 2, 1, 0, 7
|
||||
};
|
||||
|
||||
static const uint8_t
|
||||
testTextXX[]={
|
||||
L
|
||||
};
|
||||
|
||||
static const UBiDiLevel
|
||||
testLevelsXX[]={
|
||||
2
|
||||
};
|
||||
|
||||
static const uint8_t
|
||||
testVisualMapXX[]={
|
||||
0
|
||||
};
|
||||
|
||||
BiDiTestData
|
||||
tests[]={
|
||||
{testText1, ARRAY_LENGTH(testText1), UBIDI_DEFAULT_LTR, -1, -1,
|
||||
|
@ -410,7 +425,9 @@ tests[]={
|
|||
testLevels21, testVisualMap20},
|
||||
{testText17, ARRAY_LENGTH(testText17), UBIDI_LTR, 0, 8,
|
||||
UBIDI_MIXED, 0,
|
||||
testLevels22, testVisualMap21}
|
||||
testLevels22, testVisualMap21},
|
||||
{testTextXX, ARRAY_LENGTH(testTextXX), UBIDI_RTL, -1, -1,
|
||||
UBIDI_MIXED, 1, testLevelsXX, testVisualMapXX}
|
||||
};
|
||||
|
||||
int
|
||||
|
|
Loading…
Add table
Reference in a new issue