MCPcopy Create free account
hub / github.com/SakuraEngine/SakuraEngine / matchesAny

Function matchesAny

tests/framework/src/doctest.cpp:1060–1068  ·  view source on GitHub ↗

checks if the name matches any of the filters (and can be configured what to do when empty)

Source from the content-addressed store, hash-verified

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) {

Callers 2

checkFiltersMethod · 0.85
runMethod · 0.85

Calls 3

wildcmpFunction · 0.85
emptyMethod · 0.45
c_strMethod · 0.45

Tested by

no test coverage detected