extend MQTT integration support

This commit is contained in:
John
2022-01-22 15:28:32 +01:00
parent 7e563d5ae9
commit 1e21850a2b
7 changed files with 311 additions and 40 deletions
+14
View File
@@ -141,6 +141,20 @@ class FileReader {
*/
static void tolower(string* str);
/**
* Check the input string against the search pattern.
* @param input the input string to check.
* @param search the search pattern to match against. May contain alternatives separated by a "|".
* Each alternative may
* - start with "^" to match the beginning of the input,
* - end with "$" to match the end of the input,
* - contain a single "*" (between other characters) to match an arbitrary number of characters.
* @param ignoreCase true to ignore case differences.
* @param searchIsLower true if search is already known to be in lowercase only.
* @return true if the input string matches the search pattern.
*/
static bool matches(const string& input, const string& search, bool ignoreCase = false, bool searchIsLower = false);
/**
* Split the next line(s) from the @a istream into fields.
* @param stream the @a istream to read from.