JCL Help:StrStrCount@AnsiString@AnsiString

From Project JEDI Wiki
Jump to navigationJump to search


Summary

Counts the occurrences of a substring in a string.


Pascal

 function StrStrCount(const S: string; const SubS: string): SizeInt;
function StrStrCount(const S: AnsiString; const SubS: AnsiString): SizeInt;


Parameters

Parameters Description
const S: string Source string.
const SubS: string The character whose occurrences to count.


Return Value

The number of occurrences of SubS in S.


Description

StrStrCount returns the number of occurrences of the specified substring in the supplied string.


About

Unit

JclAnsiStrings


Donator

Anonymous


Contribute to this help topic

This documentation wiki is based on the collaborative effort of Project JEDI users. Your edits are welcome in order to improve documentation quality: edit this page