find method

DeriveCodePropsItem? find(
  1. int target
)
inherited

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

Implementation

T? find(int target) {
  return findIn(codePoints, target);

  // var left = 0;
  // var right = codePoints.length - 1;
  //
  // while (left <= right) {
  //   final middle = (left + right) ~/ 2;
  //   final middleRange = codePoints[middle] as UcdItemBase;
  //
  //   if (target < middleRange.start) {
  //     right = middle - 1;
  //   } else if (target > middleRange.end) {
  //     left = middle + 1;
  //   } else {
  //     return codePoints[middle];
  //   }
  // }
  //
  // return null;
}