| 79 | } |
| 80 | |
| 81 | bool 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 | |
| 91 | std::string MetadataTagProcessorImpl::ValidateAndFormat_stars(std::string const & v) |
no test coverage detected