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

Method Reset

libs/ge0/geo_url_parser.cpp:64–70  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

62LatLonParser::LatLonParser() : m_info(nullptr), m_regexp(boost::regex(kFloatCoord + ", *" + kFloatCoord)) {}
63
64void LatLonParser::Reset(url::Url const & url, GeoURLInfo & info)
65{
66 info.Reset();
67 m_info = &info;
68 m_swapLatLon = MatchHost(url, "2gis") || MatchHost(url, "yandex");
69 m_latPriority = m_lonPriority = -1;
70}
71
72bool LatLonParser::IsValid() const
73{

Callers 1

ParseMethod · 0.45

Calls 1

MatchHostFunction · 0.85

Tested by

no test coverage detected