您的位置:首页 > 编程语言 > Delphi

一个很有用的DELPHI字符操作函数

2011-02-22 16:28 393 查看
Unit

SysUtils

LastDelimiter(const Delimiters, S: string): Integer;

Returns the byte index of the last character that matches any character in a specified set of delimiters.

Delimiters:指定的分割符,可以是多个。

S:源字符串。

For example:

LastDelimiter('/*','123/567*/abc.txt') = 9;

remark:最后出现的分隔符号是“/”,位置是9。

LastDelimiter('./*)(','123/567/abc.txt') = 12;

remark:最后出现的分隔符号是“.”,位置是12。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐