NaiveAlgorithm

A naive search Algorithm performing exact matches on strings.

There are no safe ways to perform case insensitive search using String.indexOf with all languages, so this Algorithm does not have any options. Use IcuAlgorithm for better results.

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
open override val options: SearchService.Options

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
open suspend override 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.