doc / ch.tutteli.atrium.assertions.charsequence.contains.searchers / CharSequenceContainsIgnoringCaseIndexSearcher

CharSequenceContainsIgnoringCaseIndexSearcher

class CharSequenceContainsIgnoringCaseIndexSearcher : ISearcher<CharSequenceContainsIgnoringCaseSearchBehaviour>

Represents an ISearcher which implements the CharSequenceContainsIgnoringCaseSearchBehaviour behaviour and uses CharSequence.indexOf to find expected objects.

Constructors

<init>

CharSequenceContainsIgnoringCaseIndexSearcher()

Represents an ISearcher which implements the CharSequenceContainsIgnoringCaseSearchBehaviour behaviour and 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.