delphi SysUtils.StringReplace - 替换


本文整理自网络,侵删。

 SysUtils.StringReplace - 替换
举例:
--------------------------------------------------------------------------------

var
ss,s: string;
begin
ss := '2007-2008';
s := StringReplace(ss,'00','x',[rfReplaceAll]);
ShowMessage(s); //2x7-2x8

s := StringReplace(ss,'00','x',[rfIgnoreCase]);
ShowMessage(s); //2x7-2008
end;

相关阅读 >>

Delphi firemonkey 学习笔记 �c tpopup 控件的使用

Delphi 跳出for循环

Delphi2007 读取得unicode文本

Delphi 结构体的使用、tbitmap和tmemorystream的转换

Delphi-xe5-开发 android uri简介

Delphi中控制与捕捉输入法的实现单元

Delphi 获取计算机从开机开始的已运行时间

Delphi webbrowser1实现滚屏

Delphi在64位系统下读写注册表

Delphi的tfilestream

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



打赏

取消

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

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

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

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

评论

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