PropertyValueNameToEnumMapper.indicSyllabicCategoryWithProvider constructor

PropertyValueNameToEnumMapper.indicSyllabicCategoryWithProvider(
  1. DataProvider provider
)

Create a name-to-enum mapper for the Indic_Syllabic_Category property, using a particular data source.

See the Rust documentation for IndicSyllabicCategory for more information.

Throws DataError on failure.

Implementation

factory PropertyValueNameToEnumMapper.indicSyllabicCategoryWithProvider(DataProvider provider) {
  final result = _icu4x_PropertyValueNameToEnumMapper_create_indic_syllabic_category_with_provider_mv1(provider._ffi);
  if (!result.isOk) {
    throw DataError.values[result.union.err];
  }
  return PropertyValueNameToEnumMapper._fromFfi(result.union.ok, []);
}