mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-14 09:21:03 +00:00
ICU-21269 ParagraphLayout complexTable: init & access based on actual values
This commit is contained in:
parent
2abe9369a6
commit
65ec5621b4
1 changed files with 2 additions and 2 deletions
|
@ -137,7 +137,7 @@ le_int32 StyleRuns::getRuns(le_int32 runLimits[], le_int32 styleIndices[])
|
|||
* process, rather for all scripts which require
|
||||
* complex processing for correct rendering.
|
||||
*/
|
||||
static const le_bool complexTable[scriptCodeCount] = {
|
||||
static const le_bool complexTable[] = {
|
||||
FALSE , /* Zyyy */
|
||||
FALSE, /* Qaai */
|
||||
TRUE, /* Arab */
|
||||
|
@ -974,7 +974,7 @@ le_int32 ParagraphLayout::getLanguageCode(const Locale *locale)
|
|||
|
||||
le_bool ParagraphLayout::isComplex(UScriptCode script)
|
||||
{
|
||||
if (script < 0 || script >= (UScriptCode) scriptCodeCount) {
|
||||
if (script < 0 || script >= ARRAY_SIZE(complexTable)) {
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue