MCPcopy Create free account
hub / github.com/Clarionos/clarion / to_int64

Function to_int64

libraries/fc/src/string.cpp:92–103  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

90
91
92 int64_t to_int64( const fc::string& i )
93 {
94 try
95 {
96 return boost::lexical_cast<int64_t>(i.c_str(), i.size());
97 }
98 catch( const boost::bad_lexical_cast& e )
99 {
100 FC_THROW_EXCEPTION( parse_error_exception, "Couldn't parse int64_t" );
101 }
102 FC_RETHROW_EXCEPTIONS( warn, "${i} => int64_t", ("i",i) )
103 }
104
105 uint64_t to_uint64( const fc::string& i )
106 { try {

Callers 3

as_int64Method · 0.85
time.cppFile · 0.85
number_from_streamFunction · 0.85

Calls 2

c_strMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected