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

Function StringToUnits

generator/maxspeeds_parser.cpp:339–348  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

337}
338
339Units StringToUnits(std::string_view units)
340{
341 if (units == "Metric")
342 return Units::Metric;
343 if (units == "Imperial")
344 return Units::Imperial;
345
346 CHECK(false, (units));
347 return Units::Metric;
348}
349} // namespace generator

Callers 1

ParseMaxspeedsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected