checks if the name matches any of the filters (and can be configured what to do when empty)
| 1058 | |
| 1059 | // checks if the name matches any of the filters (and can be configured what to do when empty) |
| 1060 | bool matchesAny(const char* name, const std::vector<String>& filters, bool matchEmpty, |
| 1061 | bool caseSensitive) { |
| 1062 | if (filters.empty() && matchEmpty) |
| 1063 | return true; |
| 1064 | for (auto& curr : filters) |
| 1065 | if (wildcmp(name, curr.c_str(), caseSensitive)) |
| 1066 | return true; |
| 1067 | return false; |
| 1068 | } |
| 1069 | |
| 1070 | DOCTEST_NO_SANITIZE_INTEGER |
| 1071 | unsigned long long hash(unsigned long long a, unsigned long long b) { |
no test coverage detected