find method

  1. @override
UnicodeDataItem? find(
  1. int target
)

Finds a codePoint or return null if not found

Implementation

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

  if (_isNonCharacter(target)) {
    return UnicodeDataItem(
      target,
      target,
      name: defaultNonCharacter,
      category: defaultCategory,
      canonicalCombiningClass: '',
      bidiClass: '',
      decomposition: '',
      decimalDigitValue: '',
      digitValue: '',
      numericValue: '',
      mirrored: '',
      unicode1Name: '',
      isoComment: '',
      simpleUppercaseMapping: '',
      simpleLowercaseMapping: '',
      simpleTitlecaseMapping: '',
    );
  }

  return null;
}