MCPcopy Create free account
hub / github.com/comaps/comaps / Prefix2Double

Function Prefix2Double

generator/osm2meta.cpp:81–88  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

79}
80
81bool Prefix2Double(std::string const & str, double & d)
82{
83 char * stop;
84 char const * s = str.c_str();
85 // TODO: Replace with a faster and locale-ignored double conversion.
86 d = std::strtod(s, &stop);
87 return (s != stop && math::is_finite(d));
88}
89} // namespace
90
91std::string MetadataTagProcessorImpl::ValidateAndFormat_stars(std::string const & v)

Callers 1

Calls 1

is_finiteFunction · 0.85

Tested by

no test coverage detected