fun search(searchIn: CharSequence, searchFor: String): Int
(source)
Overrides Searcher.search
Searches in the given searchIn for the given searchFor, using its toString implementation, and returns the number of occurrences.
Whether searches are disjoint or non-disjoint is up to the implementation.
searchIn
- The input CharSequence in which this Searcher shall search