iterRangesForGroup method

CodePointRangeIterator iterRangesForGroup(
  1. GeneralCategoryGroup group
)

Given a mask value (the nth bit marks property value = n), produce an iterator over ranges of code points whose property values are contained in the mask.

The main mask property supported is that for General_Category, which can be obtained via general_category_to_mask() or by using GeneralCategoryNameToMaskMapper

Should only be used on maps for properties with values less than 32 (like Generak_Category), other maps will have unpredictable results

See the Rust documentation for iter_ranges_for_group for more information.

Implementation

CodePointRangeIterator iterRangesForGroup(GeneralCategoryGroup group) {
  final temp = _FinalizedArena();
  // This lifetime edge depends on lifetimes: 'a
  core.List<Object> aEdges = [this];
  final result = _icu4x_CodePointMapData8_iter_ranges_for_group_mv1(_ffi, group._toFfi(temp.arena));
  return CodePointRangeIterator._fromFfi(result, [], aEdges);
}