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-24 21:55  windsonvip  阅读(528)  评论(0编辑  收藏  举报