MCPcopy Create free account
hub / github.com/LAStools/LAStools / stoidefault

Function stoidefault

LASzip/src/mydefs.cpp:746–752  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

744}
745
746int stoidefault(const std::string& val, int def) {
747 try {
748 return std::stoi(val);
749 } catch (const std::exception&) {
750 return def;
751 }
752}
753
754double stoddefault(const std::string& val, double def) {
755 try {

Callers 1

ValueSubIntMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected