findCanonicalIanaFromBcp47 method
- String value
See the Rust documentation for find_canonical_iana_from_bcp47
for more information.
Implementation
String? findCanonicalIanaFromBcp47(String value) {
final temp = _FinalizedArena();
final write = _Write();
final result = _icu4x_TimeZoneIdMapper_find_canonical_iana_from_bcp47_mv1(_ffi, value._utf8AllocIn(temp.arena), write._ffi);
if (!result.isOk) {
return null;
}
return write.finalize();
}