Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ElementsProject/elements
/ Capitalize
Function
Capitalize
src/util/strencodings.cpp:504–509 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
502
}
503
504
std::string Capitalize(std::string str)
505
{
506
if (str.empty()) return str;
507
str[0] = ToUpper(str.front());
508
return str;
509
}
510
511
std::string HexStr(const Span<const uint8_t> s)
512
{
Callers
3
BOOST_AUTO_TEST_CASE
Function · 0.85
FUZZ_TARGET
Function · 0.85
help
Method · 0.85
Calls
2
ToUpper
Function · 0.70
empty
Method · 0.45
Tested by
2
BOOST_AUTO_TEST_CASE
Function · 0.68
FUZZ_TARGET
Function · 0.68