Algorithm

interface Algorithm

Implements the actual search algorithm in sanitized text content.

Inheritors

Properties

Link copied to clipboard

Default value for the search options available with this algorithm. If an option does not have a value, it is not supported by the algorithm.

Functions

Link copied to clipboard
abstract suspend fun findRanges(query: String, options: SearchService.Options, text: String, locale: Locale): List<IntRange>

Finds all the ranges of occurrences of the given query in the text.