MCPcopy Create free account
hub / github.com/davidgiven/fluxengine / parseCylinderHeadsString

Function parseCylinderHeadsString

lib/data/locations.cc:138–151  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

136};
137
138std::vector<CylinderHead> parseCylinderHeadsString(const std::string& s)
139{
140 auto input = lexy::string_input(s);
141 auto result = lexy::parse<grammar::chs>(input, error_collector());
142 if (result.is_error())
143 {
144 error(fmt::format("track descriptor parse error: {}",
145 fmt::join(result.errors(), "; ")));
146 }
147
148 std::vector<CylinderHead> results = result.value();
149 std::sort(results.begin(), results.end());
150 return results;
151}
152
153std::string convertCylinderHeadsToString(const std::vector<CylinderHead>& chs)
154{

Callers 7

mainFluxfileRmFunction · 0.85
mainFluxfileCpFunction · 0.85
mainAnalyseDriveResponseFunction · 0.85
mainInspectFunction · 0.85
onOpenMethod · 0.85
test_successful_parsingFunction · 0.85
test_failed_parsingFunction · 0.85

Calls 6

error_collectorClass · 0.85
errorFunction · 0.85
joinFunction · 0.50
valueMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by 3

mainInspectFunction · 0.68
test_successful_parsingFunction · 0.68
test_failed_parsingFunction · 0.68