| 31 | namespace |
| 32 | { |
| 33 | bool |
| 34 | ValidateTopic(std::string const& topic) |
| 35 | { |
| 36 | std::string regexExpr = "([A-Za-z0-9_.]+)(\\/[A-Za-z0-9_.]+)*"; |
| 37 | |
| 38 | return std::regex_match(topic, std::regex(regexExpr)); |
| 39 | } |
| 40 | |
| 41 | bool |
| 42 | PropsAreEqual(AnyMap const& props1, AnyMap const& props2) |