MCPcopy 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
504std::string Capitalize(std::string str)
505{
506 if (str.empty()) return str;
507 str[0] = ToUpper(str.front());
508 return str;
509}
510
511std::string HexStr(const Span<const uint8_t> s)
512{

Callers 3

BOOST_AUTO_TEST_CASEFunction · 0.85
FUZZ_TARGETFunction · 0.85
helpMethod · 0.85

Calls 2

ToUpperFunction · 0.70
emptyMethod · 0.45

Tested by 2

BOOST_AUTO_TEST_CASEFunction · 0.68
FUZZ_TARGETFunction · 0.68