setScript method
- String s
Set the script part of the Locale. Pass an empty string to remove the script.
See the Rust documentation for try_from_str
for more information.
Throws LocaleParseError on failure.
Implementation
void setScript(String s) {
final temp = _FinalizedArena();
final result = _icu4x_Locale_set_script_mv1(_ffi, s._utf8AllocIn(temp.arena));
if (!result.isOk) {
throw LocaleParseError.values[result.union.err];
}
}