Delphi Base

WindSon

导航

delphi判断字符是否是汉字

function IsHZ(ch: WideChar): boolean;
var
  i: Integer;
begin
  i := Ord(ch);
  if (i < 19968) or (i > 40869) then
    result := False
  else
    result := True;
end;

 

posted on 2020-03-16 17:20  windsonvip  阅读(195)  评论(0编辑  收藏  举报