|
Albert
|
#include <albert/matcher.h>
Configurable string matcher.
Public Member Functions | |
| Matcher (const QString &string, MatchConfig config={}) | |
Constructs a Matcher with the given string and match config. | |
| Matcher (Matcher &&o) | |
Constructs a Matcher with the contents of other using move semantics. | |
| Matcher & | operator= (Matcher &&o) |
Replaces the contents with those of other using move semantics. | |
| ~Matcher () | |
| Destructs the Matcher. | |
| const QString & | string () const |
| Returns the string matched against. | |
| Match | match (const QString &string) const |
Returns a Match for string. | |
| Match | match (QString first, auto... args) const |
| Returns the max Match for the given strings. | |
| Match | match (std::ranges::range auto &&strings) const |
Returns the max Match in the range of strings. | |
| albert::util::Matcher::Matcher | ( | const QString & | string, |
| MatchConfig | config = {} |
||
| ) |
Constructs a Matcher with the given string and match config.
If config is not provided, a default constructed config is used.
| albert::util::Matcher::Matcher | ( | Matcher && | o | ) |
Constructs a Matcher with the contents of other using move semantics.
| albert::util::Matcher::~Matcher | ( | ) |
Destructs the Matcher.
|
inline |
Returns the max Match for the given strings.
|
inline |
Returns the max Match in the range of strings.
Replaces the contents with those of other using move semantics.
| const QString & albert::util::Matcher::string | ( | ) | const |
Returns the string matched against.