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

Method getULong

src/thundersvm/util/log.cpp:1646–1659  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1644 }
1645
1646 unsigned long TypedConfigurations::getULong(std::string confVal) {
1647 bool valid = true;
1648 base::utils::Str::trim(confVal);
1649 valid = !confVal.empty() && std::find_if(confVal.begin(), confVal.end(),
1650 [](char c) {
1651 return !base::utils::Str::isDigit(c);
1652 }) == confVal.end();
1653 if (!valid) {
1654 valid = false;
1655 ELPP_ASSERT(valid, "Configuration value not a valid integer [" << confVal << "]");
1656 return 0;
1657 }
1658 return atol(confVal.c_str());
1659 }
1660
1661 std::string TypedConfigurations::resolveFilename(const std::string& filename) {
1662 std::string resultingFilename = filename;

Callers

nothing calls this directly

Calls 3

endMethod · 0.80
emptyMethod · 0.45
beginMethod · 0.45

Tested by

no test coverage detected