TitlecaseMapper constructor

TitlecaseMapper()

Construct a new TitlecaseMapper instance using compiled data.

See the Rust documentation for new for more information.

Throws DataError on failure.

Implementation

factory TitlecaseMapper() {
  final result = _icu4x_TitlecaseMapper_create_mv1();
  if (!result.isOk) {
    throw DataError.values[result.union.err];
  }
  return TitlecaseMapper._fromFfi(result.union.ok, []);
}