of method

String of(
  1. Locale locale
)

Returns the locale-specific display name of a locale.

See the Rust documentation for of for more information.

Implementation

String of(Locale locale) {
  final write = _Write();
  _icu4x_LocaleDisplayNamesFormatter_of_mv1(_ffi, locale._ffi, write._ffi);
  return write.finalize();
}