"count" (string::count)

Returns the number of (potentially overlapping) occurrences of the string s in this string.

Synopsis

int string.count(string s, CaseSensitivity cs = CaseSensitive);

Parameters

Parameter Description
s String to be searched
cs

Decides if the search is case sensitive. Can be either:

  • string::CaseSensitive
  • string::CaseInsensitive

Description

-

Assignment

String