MCPcopy Create free account
hub / github.com/boostorg/stacktrace / try_dec_convert

Function try_dec_convert

include/boost/stacktrace/detail/try_dec_convert.hpp:20–24  ·  view source on GitHub ↗

We do not use boost::lexical_cast in this function to reduce module dependencies

Source from the content-addressed store, hash-verified

18
19// We do not use boost::lexical_cast in this function to reduce module dependencies
20inline bool try_dec_convert(const char* s, std::size_t& res) noexcept {
21 char* end_ptr = 0;
22 res = std::strtoul(s, &end_ptr, 10);
23 return *end_ptr == '\0';
24}
25
26
27}}} // namespace boost::stacktrace::detail

Callers 2

test_try_dec_convertFunction · 0.85
source_lineFunction · 0.85

Calls

no outgoing calls

Tested by 1

test_try_dec_convertFunction · 0.68