MCPcopy Create free account
hub / github.com/BZFlag-Dev/bzflag / stringInList

Function stringInList

plugins/plugin_utils/plugin_HTTP.cpp:563–570  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

561}
562
563bool stringInList(const std::string& str, const std::vector<std::string> stringList) {
564 for (std::vector<std::string>::const_iterator itr = stringList.begin(); itr != stringList.end(); itr++) {
565 if (compare_nocase(str, *itr) == 0) {
566 return true;
567 }
568 }
569 return false;
570}
571
572void BZFSHTTPAuth::addPermToLevel(int level, const std::string& perm) {
573 if (level <= 0) {

Callers 1

getLevelFromGroupsMethod · 0.85

Calls 3

compare_nocaseFunction · 0.70
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected