MCPcopy Create free account
hub / github.com/dds-bridge/dds / get_int_element

Function get_int_element

library/tests/parse.cpp:584–596  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

582
583
584bool get_int_element(
585 const string& elem,
586 int& res,
587 const string& errtext)
588{
589 if (! str2int(elem, res))
590 {
591 cout << errtext << ": '" << elem << "'\n";
592 return false;
593 }
594 else
595 return true;
596}
597
598
599bool strip_quotes(

Callers 5

parse_PBNFunction · 0.85
parse_FUTFunction · 0.85
parse_TABLEFunction · 0.85
parse_PLAYFunction · 0.85
parse_TRACEFunction · 0.85

Calls 1

str2intFunction · 0.85

Tested by

no test coverage detected