Changeset View
Changeset View
Standalone View
Standalone View
kdevplatform/language/interfaces/abbreviations.h
Show First 20 Lines • Show All 41 Lines • ▼ Show 20 Line(s) | |||||
42 | * If all typed fragments can be matched against a fragment in word in the right order | 42 | * If all typed fragments can be matched against a fragment in word in the right order | ||
43 | * (skipping is allowed), true will be returned. | 43 | * (skipping is allowed), true will be returned. | ||
44 | * @param word the word to search in | 44 | * @param word the word to search in | ||
45 | * @param typedFragments the fragments which were typed | 45 | * @param typedFragments the fragments which were typed | ||
46 | * @return bool true if match, else false | 46 | * @return bool true if match, else false | ||
47 | */ | 47 | */ | ||
48 | KDEVPLATFORMLANGUAGE_EXPORT bool matchesAbbreviationMulti(const QString& word, const QStringList& typedFragments); | 48 | KDEVPLATFORMLANGUAGE_EXPORT bool matchesAbbreviationMulti(const QString& word, const QStringList& typedFragments); | ||
49 | 49 | | |||
50 | enum class PathFilterMatchQuality | | |||
51 | { | | |||
52 | NoMatch, | | |||
53 | ExactMatch, | | |||
54 | StartMatch, | | |||
55 | OtherMatch | | |||
56 | }; | | |||
57 | /** | 50 | /** | ||
58 | * @brief Matches a path against a list of search fragments. | 51 | * @brief Matches a path against a list of search fragments. | ||
52 | * @return -1 when no match is found, otherwise a positive integer, higher values mean lower quality | ||||
59 | */ | 53 | */ | ||
60 | KDEVPLATFORMLANGUAGE_EXPORT PathFilterMatchQuality matchPathFilter(const Path& toFilter, const QStringList& text); | 54 | KDEVPLATFORMLANGUAGE_EXPORT int matchPathFilter(const Path& toFilter, const QStringList& text); | ||
61 | } | 55 | } | ||
62 | 56 | | |||
63 | #endif | 57 | #endif | ||
64 | 58 | | |||
65 | // kate: space-indent on; indent-width 2 | 59 | // kate: space-indent on; indent-width 2 |