| OGUtilitiesCount Method (String, Char) |
Counts the number of occurrences of a character pattern in a
string.
Namespace: Stingray.GridAssembly: Stingray.GridUtils (in Stingray.GridUtils.dll) Version: 14.0.0.0
Syntax public static int Count(
string s,
char pat
)
Public Shared Function Count (
s As String,
pat As Char
) As Integer
public:
static int Count(
String^ s,
wchar_t pat
)
Parameters
- s
- Type: SystemString
Input string. - pat
- Type: SystemChar
Pattern to count in the source string.
Return Value
Type:
Int32Number of occurrences of the pattern in the input string.
See Also