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

Method ValueSubDouble

src/wktparser.cpp:327–334  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

325}
326
327double WktParser::ValueSubDouble(const std::string& key, const std::string sub, const double def) {
328 std::string res = ValueSubStr(key, sub);
329 if (res.empty()) {
330 return def;
331 } else {
332 return stoddefault(res, def);
333 }
334}
335
336/* *************************
337 WktParserSem

Callers

nothing calls this directly

Calls 2

stoddefaultFunction · 0.85
emptyMethod · 0.80

Tested by

no test coverage detected