MCPcopy Create free account
hub / github.com/brichard19/BitCrack / parseCompressionString

Function parseCompressionString

KeyFinder/main.cpp:277–294  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

275}
276
277int parseCompressionString(const std::string &s)
278{
279 std::string comp = util::toLower(s);
280
281 if(comp == "both") {
282 return PointCompressionType::BOTH;
283 }
284
285 if(comp == "compressed") {
286 return PointCompressionType::COMPRESSED;
287 }
288
289 if(comp == "uncompressed") {
290 return PointCompressionType::UNCOMPRESSED;
291 }
292
293 throw std::string("Invalid compression format: '" + s + "'");
294}
295
296static std::string getCompressionString(int mode)
297{

Callers 2

readCheckpointFileFunction · 0.85
mainFunction · 0.85

Calls 1

toLowerFunction · 0.85

Tested by

no test coverage detected