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。
本文详细介绍了 Delphi 中 SysUtils 单元提供的 LastDelimiter 函数,该函数用于返回指定字符串中最后一个匹配分隔符的位置。通过示例说明如何使用此函数定位字符串中的特定分隔符。
4473

被折叠的 条评论
为什么被折叠?



