![]() |
LeechCraft
0.6.70-15082-g543737046d
Modular cross-platform feature rich live environment.
|
Describes a field with QString values. More...
#include "ianemitter.h"
Public Member Functions | |
ANStringFieldValue (const QRegExp &rx, bool contains) | |
Constructs the field matcher. More... | |
ANStringFieldValue (const QString &str, bool contains=true) | |
Constructs the field matcher for the given str. More... | |
bool | operator== (const ANStringFieldValue &) const =default |
Public Attributes | |
QRegExp | Rx_ |
The regular expression the values should (not) match. More... | |
bool | Contains_ |
Whether the values should match or not match Rx_. More... | |
Describes a field with QString values.
Definition at line 136 of file ianemitter.h.
|
inline |
Constructs the field matcher.
[in] | rx | The regexp to match. |
[in] | contains | Whether the string should or should not match rx. |
Definition at line 155 of file ianemitter.h.
|
inline |
Constructs the field matcher for the given str.
This constructor constructs a field matcher that matches (or does not match if contains is false) when the string in question contains the str. It is analogous to the previous constructor if the regular expression object is constructed as QRegExp { str, Qt::CaseSensitive, QRegExp::FixedString }
.
[in] | str | The string that should be looked for. |
[in] | contains | Whether the string should or should not contain str. |
Definition at line 173 of file ianemitter.h.
|
default |
bool LC::ANStringFieldValue::Contains_ |
Whether the values should match or not match Rx_.
If this is true, the values should match Rx_, and shouldn't otherwise.
Definition at line 147 of file ianemitter.h.
QRegExp LC::ANStringFieldValue::Rx_ |
The regular expression the values should (not) match.
Definition at line 140 of file ianemitter.h.