Delphi 字符串定界符


本文整理自网络,侵删。

 
定界符:

//--------------------------------------------------------------------------------
var
  str: string;
  b: Boolean;
  n: Integer;
begin
  str := 'http://del.cnblogs.com';

  b := str.IsDelimiter(':', 4);  // True
  b := str.IsDelimiter('//', 5); // True

  n := str.LastDelimiter('.');   // 18
  n := str.IndexOf('.');         // 10
end;

相关阅读 >>

Delphi 判断端口是否被使用

wmi使用的win32_类库名

Delphi如何获取系统服务(即service服务程序)列表

Delphi中formatdatetime函数的用法

Delphi dbexpress的upwherekeyonly的使用注意事项

Delphi求数组最大\最小值

Delphi树的一些操作

Delphi弹出信息框大全

Delphi application.processmessage作用

Delphi 获取listview1鼠标所在位置的行名称

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



打赏

取消

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

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

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

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

评论

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