MCPcopy Create free account
hub / github.com/Xtra-Computing/thundersvm / convertFromString

Method convertFromString

src/thundersvm/util/log.cpp:78–85  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

76 };
77
78 Level LevelHelper::convertFromString(const char* levelStr) {
79 for (auto& item : stringToLevelMap) {
80 if (base::utils::Str::cStringCaseEq(levelStr, item.levelString)) {
81 return item.level;
82 }
83 }
84 return Level::Unknown;
85 }
86
87 void LevelHelper::forEachLevel(base::type::EnumType* startIndex, const std::function<bool(void)>& fn) {
88 base::type::EnumType lIndexMax = LevelHelper::kMaxValid;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected