Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ElementsProject/elements
/ setNumStr
Method
setNumStr
src/univalue/lib/univalue.cpp:46–55 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
44
}
45
46
bool UniValue::setNumStr(const std::string& val_)
47
{
48
if (!validNumStr(val_))
49
return false;
50
51
clear();
52
typ = VNUM;
53
val = val_;
54
return true;
55
}
56
57
bool UniValue::setInt(uint64_t val_)
58
{
Callers
2
ValueFromString
Function · 0.80
BOOST_AUTO_TEST_CASE
Function · 0.80
Calls
2
validNumStr
Function · 0.85
clear
Function · 0.85
Tested by
2
ValueFromString
Function · 0.64
BOOST_AUTO_TEST_CASE
Function · 0.64