public class SpeedSearchComparator
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
myRecentSearchText |
Constructor and Description |
---|
SpeedSearchComparator() |
SpeedSearchComparator(boolean shouldMatchFromTheBeginning) |
SpeedSearchComparator(boolean shouldMatchFromTheBeginning,
boolean shouldMatchCamelCase) |
Modifier and Type | Method and Description |
---|---|
protected MinusculeMatcher |
createMatcher(java.lang.String pattern) |
java.lang.String |
getRecentSearchText() |
int |
matchingDegree(java.lang.String pattern,
java.lang.String text) |
java.lang.Iterable<TextRange> |
matchingFragments(java.lang.String pattern,
java.lang.String text) |
public SpeedSearchComparator()
public SpeedSearchComparator(boolean shouldMatchFromTheBeginning)
public SpeedSearchComparator(boolean shouldMatchFromTheBeginning, boolean shouldMatchCamelCase)
public int matchingDegree(java.lang.String pattern, java.lang.String text)
public java.lang.Iterable<TextRange> matchingFragments(java.lang.String pattern, java.lang.String text)
protected MinusculeMatcher createMatcher(java.lang.String pattern)
public java.lang.String getRecentSearchText()