lowercaseWithCompiledData static method

String lowercaseWithCompiledData(
  1. String s,
  2. Locale locale
)

Returns the full lowercase mapping of the given string, using compiled data (avoids having to allocate a CaseMapper object)

See the Rust documentation for lowercase for more information.

Implementation

static String lowercaseWithCompiledData(String s, Locale locale) {
  final temp = _FinalizedArena();
  final write = _Write();
  _icu4x_CaseMapper_lowercase_with_compiled_data_mv1(s._utf8AllocIn(temp.arena), locale._ffi, write._ffi);
  return write.finalize();
}