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 . | |
template<typename... Args> | |
Match | match (QString first, Args... args) const |
Returns a Match for the given strings. | |
Match | match (std::ranges::range auto &&strings) const |
Returns the max match for strings . | |
albert::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::Matcher::Matcher | ( | Matcher && | o | ) |
Constructs a Matcher with the contents of other
using move semantics.
albert::Matcher::~Matcher | ( | ) |
Destructs the Matcher.
|
inline |
Returns a Match for the given strings.
|
inline |
Returns the max match for strings
.
Replaces the contents with those of other
using move semantics.
const QString & albert::Matcher::string | ( | ) | const |
Returns the string matched against.