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

Function MatchHost

libs/ge0/geo_url_parser.cpp:48–51  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

46}
47
48bool MatchHost(url::Url const & url, char const * host)
49{
50 return url.GetHost().find(host) != std::string::npos;
51}
52
53// Canonical parsing is float-only coordinates and int-only scale.
54std::string const kFloatCoord = R"(([+-]?\d+\.\d+))";

Callers 2

ResetMethod · 0.85
ParseMethod · 0.85

Calls 1

findMethod · 0.45

Tested by

no test coverage detected