function CountDelims(const S, Delims: string): Integer;
var
Idx: Integer; //loops thru all characters in string
begin
Result := 0;
for Idx := 1 to Length(S) do
if SysUtils.IsDelimiter(Delims, S, Idx) then
Inc(Result);
end;
查找字符出现次数
最新推荐文章于 2023-07-11 15:51:29 发布