JCL Help:StrCharCount@AnsiString@AnsiChar

From Project JEDI Wiki
Jump to navigationJump to search


Summary

Counts the occurrences of a character in a string.


Pascal

 function StrCharCount(const S: string; C: Char): SizeInt; overload;
function StrCharCount(const S: AnsiString; C: AnsiChar): SizeInt;


Parameters

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


Return Value

The number of occurrences of C in S.


Description

StrCharCount returns the number of occurrences of the specified character in the supplied string.


About

Unit

JclAnsiStrings


Donator

Massimo Maria Ghisalberti


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