-
- All Implemented Interfaces:
-
org.readium.r2.shared.publication.services.search.StringSearchService.Algorithm
@RequiresApi(value = 24) public final class StringSearchService.IcuAlgorithm implements StringSearchService.Algorithm
Implementation of a search Algorithm using ICU components to perform the actual search while taking into account languages specificities.
-
-
Field Summary
Fields Modifier and Type Field Description private final SearchService.Optionsoptions
-
Constructor Summary
Constructors Constructor Description StringSearchService.IcuAlgorithm()
-
Method Summary
Modifier and Type Method Description SearchService.OptionsgetOptions()Default value for the search options available with this algorithm. List<IntRange>findRanges(String query, SearchService.Options options, String text, Locale locale)Finds all the ranges of occurrences of the given query in the text. -
-
Method Detail
-
getOptions
SearchService.Options getOptions()
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.
-
findRanges
List<IntRange> findRanges(String query, SearchService.Options options, String text, Locale locale)
-
-
-
-