find method

  1. @override
EastAsianWidthItem find(
  1. int target
)

Finds a codePoint or return a default item as 'N" (Neutral) category

Implementation

@override
EastAsianWidthItem find(int target) {
  final char = super.find(target);
  if (char != null) return char;

  for (final special in _specialCases) {
    if (target >= special.start && target <= special.end) {
      return EastAsianWidthItem(special.start, special.end, 'W', exceptionEAWProperty);
    }
  }

  return _missingItem;
}