本文整理自网络,侵删。
//delphi判断字符串是否是汉字
function IsHz(Source: string): Bool;
begin
result := ((Word(Source[1]) shl 8 + Word(Source[2])) >= $B0A1) and ((Word(Source[1]) shl 8 + Word(Source[2])) <= $D7F9)
end;
相关阅读 >>
Delphi net.httpclient用最精简的代码获取网页数据
Delphi 将richedit的内容输出到一个image图像中
更多相关阅读请进入《Delphi》频道 >>