delphi分离汉字和英文字母


本文整理自网络,侵删。

 delphi分离汉字和英文字母
const
s:widestring='k你asdfdsf好d吗?';
var
i:integer;
y,h:string;
begin
while Length(s)<>0 do
begin
if Length(s[i])=Length(string(s[i])) then
y:=y+s[i]
else h:=h+s[i];
s:=copy(s,2,length(s));
end;
edit1.Text:=y;
edit2.Text:=h;
end;

相关阅读 >>

Delphi dll 字符串传递例子

Delphi 多重循环

Delphi用socket api实现路由追踪

Delphi 如何解决在dll的入口函数中创建或结束线程时卡死

Delphi调用阿里云的对象存储服务oss

Delphi2010中tresourcestream流使用

firemonkey下使用stylebook的一些经验

Delphi 让"显示桌面"功能对你的窗口无效

Delphi 查询当前进程的内存使用大小

Delphi 隐藏进程代码

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



打赏

取消

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

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

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

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

评论

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