#include <PhosphorShellLauncher/FuzzyMatcher.h>
|
| static std::optional< FuzzyMatch > | match (QStringView pattern, QStringView candidate, bool caseSensitive=false) |
| static bool | patternIsCaseSensitive (QStringView pattern) |
| | fzf's smart case, as a decision a caller can make in one line.
|
| static int | perfectScore (int length) |
◆ match()
| std::optional< FuzzyMatch > PhosphorShellLauncher::FuzzyMatcher::match |
( |
QStringView | pattern, |
|
|
QStringView | candidate, |
|
|
bool | caseSensitive = false ) |
|
staticnodiscard |
◆ patternIsCaseSensitive()
| bool PhosphorShellLauncher::FuzzyMatcher::patternIsCaseSensitive |
( |
QStringView | pattern | ) |
|
|
staticnodiscard |
fzf's smart case, as a decision a caller can make in one line.
True when the pattern contains an upper-case character, which is the user saying they mean that capital. Providers pass the result of this to match(), so a lower-case query still matches anything and a typed capital narrows.
◆ perfectScore()
| int PhosphorShellLauncher::FuzzyMatcher::perfectScore |
( |
int | length | ) |
|
|
staticnodiscard |
◆ BonusBoundary
| int PhosphorShellLauncher::FuzzyMatcher::BonusBoundary = ScoreMatch / 2 |
|
staticconstexpr |
◆ BonusBoundaryDelimiter
| int PhosphorShellLauncher::FuzzyMatcher::BonusBoundaryDelimiter = BonusBoundary + 1 |
|
staticconstexpr |
◆ BonusBoundaryWhite
| int PhosphorShellLauncher::FuzzyMatcher::BonusBoundaryWhite = BonusBoundary + 2 |
|
staticconstexpr |
◆ BonusCamel123
◆ BonusConsecutive
◆ BonusFirstCharMultiplier
| int PhosphorShellLauncher::FuzzyMatcher::BonusFirstCharMultiplier = 2 |
|
staticconstexpr |
◆ BonusNonWord
| int PhosphorShellLauncher::FuzzyMatcher::BonusNonWord = ScoreMatch / 2 |
|
staticconstexpr |
◆ ScoreGapExtension
| int PhosphorShellLauncher::FuzzyMatcher::ScoreGapExtension = -1 |
|
staticconstexpr |
◆ ScoreGapStart
| int PhosphorShellLauncher::FuzzyMatcher::ScoreGapStart = -3 |
|
staticconstexpr |
◆ ScoreMatch
| int PhosphorShellLauncher::FuzzyMatcher::ScoreMatch = 16 |
|
staticconstexpr |
The documentation for this class was generated from the following file: