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

CharSequenceContainsIgnoringCaseRegexSearcher

class CharSequenceContainsIgnoringCaseRegexSearcher : ISearcher<CharSequenceContainsIgnoringCaseSearchBehaviour>

Represents an ISearcher which implements the CharSequenceContainsIgnoringCaseSearchBehaviour behaviour and evaluates the matches of a given regular expression on the input of the search.

Constructors

<init>

CharSequenceContainsIgnoringCaseRegexSearcher()

Represents an ISearcher which implements the CharSequenceContainsIgnoringCaseSearchBehaviour behaviour and evaluates the matches of a given regular expression on the input of the search.

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.