Kaydet (Commit) 0c6a5d99 authored tarafından Thomas Arnhold's avatar Thomas Arnhold Kaydeden (comit) Caolán McNamara

i18nutil: Add new enumeration values from ICU 52

WaE: enumeration values 'USCRIPT_CAUCASIAN_ALBANIAN' and
'USCRIPT_MAHAJANI' not handled in switch [-Wswitch]

With ICU 4.9 there is no major/minor anymore, it's only ICU 49 or ICU 52.
So adapt the previous check, too.

Change-Id: Id938937b305165d407ced473ea1725e97efe9124
See: http://icu-project.org/apiref/icu4c-latest/uscript_8h.html
Reviewed-on: https://gerrit.libreoffice.org/6365Tested-by: 's avatarCaolán McNamara <caolanm@redhat.com>
Reviewed-by: 's avatarCaolán McNamara <caolanm@redhat.com>
üst 28977ea7
......@@ -911,7 +911,7 @@ OString SAL_CALL unicode::getExemplerLanguageForUScriptCode(UScriptCode eScript)
sRet = "woe";
break;
#endif
#if (U_ICU_VERSION_MAJOR_NUM > 4)
#if (U_ICU_VERSION_MAJOR_NUM >= 49)
case USCRIPT_ANATOLIAN_HIEROGLYPHS:
sRet = "hlu";
break;
......@@ -921,6 +921,14 @@ OString SAL_CALL unicode::getExemplerLanguageForUScriptCode(UScriptCode eScript)
case USCRIPT_TIRHUTA:
sRet = "mai";
break;
#endif
#if (U_ICU_VERSION_MAJOR_NUM >= 52)
case USCRIPT_CAUCASIAN_ALBANIAN:
sRet = "xag";
break;
case USCRIPT_MAHAJANI:
sRet = "mwr";
break;
#endif
}
return sRet;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment