doc / ch.tutteli.atrium.logic.creating.charsequence.contains.searchers.impl / IndexSearcher

IndexSearcher

class IndexSearcher : CharSequenceContains.Searcher<NoOpSearchBehaviour, Any> (source)

Represents a Searcher which uses CharSequence.indexOf to find expected objects.

Constructors

<init>

IndexSearcher()

Represents a Searcher which uses CharSequence.indexOf to find expected objects.

Functions

search

fun search(searchIn: CharSequence, searchFor: Any): Int

Searches in the given searchIn for the given searchFor, using its toString implementation, and returns the number of occurrences.