fromIntegerValue static method

GraphemeClusterBreak? fromIntegerValue(
  1. int other
)

Convert from an integer value from ICU4C or CodePointMapData

See the Rust documentation for from_icu4c_value for more information.

Implementation

static GraphemeClusterBreak? fromIntegerValue(int other) {
  final result = _icu4x_GraphemeClusterBreak_from_integer_value_mv1(other);
  if (!result.isOk) {
    return null;
  }
  return GraphemeClusterBreak.values[result.union.ok];
}