MCPcopy Create free account
hub / github.com/Exiv2/exiv2 / shouldOutput

Function shouldOutput

src/version.cpp:91–100  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

89} // namespace Exiv2
90
91static bool shouldOutput(const std::vector<std::regex>& greps, const char* key, const std::string& value) {
92 bool bPrint = greps.empty();
93 for (auto const& g : greps) {
94 bPrint = std::regex_search(key, g) || std::regex_search(value, g);
95 if (bPrint) {
96 break;
97 }
98 }
99 return bPrint;
100}
101
102static void output(std::ostream& os, const std::vector<std::regex>& greps, const char* name, const std::string& value) {
103 if (shouldOutput(greps, name, value))

Callers 1

outputFunction · 0.85

Calls 1

emptyMethod · 0.45

Tested by

no test coverage detected