MCPcopy Create free account
hub / github.com/ERGO-Code/HiGHS / is_empty

Function is_empty

highs/util/stringutil.cpp:95–99  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

93}
94
95bool is_empty(char c, const std::string& chars) {
96 size_t pos = chars.find_first_of(c);
97 if (pos == std::string::npos || pos == chars.size()) return false;
98 return true;
99}
100
101bool is_empty(std::string& str, const std::string& chars) {
102 size_t pos = str.find_first_not_of(chars);

Callers 2

getMpsLineMethod · 0.85
checkFirstWordMethod · 0.85

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected