Use language code instead of script type for the first argument of UStrGetBreaks

This commit is contained in:
Vincent Wei
2019-04-09 15:35:19 +08:00
parent 14eca8703c
commit 27139876a8
2 changed files with 358 additions and 358 deletions
+355 -355
View File
File diff suppressed because it is too large Load Diff
+3 -3
View File
@@ -151,7 +151,7 @@ struct break_ctxt {
int nr_ucs;
int n;
ScriptType ws;
LanguageCode lc;
Uint8 ctr;
Uint8 wbr;
Uint8 lbp;
@@ -2055,7 +2055,7 @@ static int check_subsequent_ri(struct break_ctxt* ctxt,
return consumed;
}
int GUIAPI UStrGetBreaks(ScriptType writing_system,
int GUIAPI UStrGetBreaks(LanguageCode lang_code,
Uint8 ctr, Uint8 wbr, Uint8 lbp,
Uchar32* ucs, int nr_ucs, Uint16** break_oppos)
{
@@ -2068,7 +2068,7 @@ int GUIAPI UStrGetBreaks(ScriptType writing_system,
memset(&ctxt, 0, sizeof(ctxt));
ctxt.base_bt = UCHAR_BREAK_UNSET;
ctxt.ws = writing_system;
ctxt.lc = lang_code;
ctxt.ctr = ctr;
ctxt.wbr = wbr;
ctxt.lbp = lbp;