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

Method ValueSubInt

src/wktparser.cpp:318–325  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

316}
317
318int WktParser::ValueSubInt(const std::string& key, const std::string sub, const int def) {
319 std::string res = ValueSubStr(key, sub);
320 if (res.empty()) {
321 return def;
322 } else {
323 return stoidefault(res, def);
324 }
325}
326
327double WktParser::ValueSubDouble(const std::string& key, const std::string sub, const double def) {
328 std::string res = ValueSubStr(key, sub);

Callers

nothing calls this directly

Calls 2

stoidefaultFunction · 0.85
emptyMethod · 0.80

Tested by

no test coverage detected