Delphi 判断字符串是否是单词


本文整理自网络,侵删。

 
function IsEnglishWord(strWord  : string) : Boolean;
var
  i : Integer;
begin
  Result  := True;
  for i := 1 to Length(strWord) do
  begin
    if not (strWord[i] in ['A'..'Z','a'..'z']) then  Exit(False);
  end;
end;

相关阅读 >>

Delphi 检测用户超过多长时间没有操作键盘或鼠标

Delphi inttohex

Delphi ado连接数据库

Delphi xe5 android 调用 google zxing

Delphi mac欺骗

Delphi 2009 之 tstringbuilder 类[4]: insert 与 remove

Delphi hex 相关单元

Delphi label1 自动尺寸

Delphi 计算文件大小

Delphi 遍历控件

更多相关阅读请进入《Delphi》频道 >>



打赏

取消

感谢您的支持,我会继续努力的!

扫码支持
扫码打赏,您说多少就多少

打开支付宝扫一扫,即可进行扫码打赏哦

分享从这里开始,精彩与您同在

评论

管理员已关闭评论功能...