MCPcopy Create free account
hub / github.com/bitcoin/bitcoin / Capitalize

Function Capitalize

src/util/strencodings.cpp:378–383  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

376}
377
378std::string Capitalize(std::string str)
379{
380 if (str.empty()) return str;
381 str[0] = ToUpper(str.front());
382 return str;
383}
384
385std::optional<uint64_t> ParseByteUnits(std::string_view str, ByteUnit default_multiplier)
386{

Callers 4

BOOST_AUTO_TEST_CASEFunction · 0.85
FUZZ_TARGETFunction · 0.85
helpMethod · 0.85

Calls 3

ToUpperFunction · 0.70
emptyMethod · 0.45
frontMethod · 0.45

Tested by 2

BOOST_AUTO_TEST_CASEFunction · 0.68
FUZZ_TARGETFunction · 0.68