Judgment Chinese character

function isHanzi(zi: Char): Boolean;
var
  code: Integer;
begin
  code := Integer(zi);
  Result := (code > $4e00) and (code <=  $9fbb);
end;

 

Guess you like

Origin www.cnblogs.com/onlyou13/p/10967345.html