|
Chatterino
|
MessagePredicate checking whether a substring exists in the message. More...
#include <SubstringPredicate.hpp>
Public Member Functions | |
| SubstringPredicate (const QString &search) | |
| Create a SubstringPredicate with a substring to search for. More... | |
| bool | appliesTo (const Message &message) |
| Checks whether the message contains the substring passed in the constructor. More... | |
MessagePredicate checking whether a substring exists in the message.
This predicate will only allow messages that contain a certain substring in their searchText.
| chatterino::SubstringPredicate::SubstringPredicate | ( | const QString & | search | ) |
Create a SubstringPredicate with a substring to search for.
The passed string is searched for case-insensitively.
| search | the string to search for in the message |
|
virtual |
Checks whether the message contains the substring passed in the constructor.
The check is done case-insensitively.
| message | the message to check |
Implements chatterino::MessagePredicate.
1.8.13