CodePointSetData.changesWhenLowercasedWithProvider constructor

CodePointSetData.changesWhenLowercasedWithProvider(
  1. DataProvider provider
)

Create a set for the Changes_When_Lowercased property, using a particular data source.

See the Rust documentation for ChangesWhenLowercased for more information.

Throws DataError on failure.

Implementation

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