MCPcopy Create free account
hub / github.com/Norbyte/ositools / StringToInt

Function StringToInt

OsiInterface/Functions/UtilityFunctions.cpp:45–55  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

43 }
44
45 bool StringToInt(OsiArgumentDesc & args)
46 {
47 auto a = args[0].String;
48 try {
49 args[1].Int32 = std::stoi(a);
50 return true;
51 }
52 catch (std::invalid_argument &) {
53 return false;
54 }
55 }
56
57 bool StringToReal(OsiArgumentDesc & args)
58 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected