MCPcopy Create free account
hub / github.com/argotorg/solidity / toInt

Function toInt

libyul/AsmParser.cpp:49–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

47{
48
49std::optional<int> toInt(std::string const& _value)
50{
51 try
52 {
53 return stoi(_value);
54 }
55 catch (std::out_of_range const&)
56 {
57 return std::nullopt;
58 }
59}
60
61}
62

Callers 2

parseSrcCommentMethod · 0.85
parseASTIDCommentMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected