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

Function TrimString

src/util/string.h:172–175  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

170}
171
172[[nodiscard]] inline std::string TrimString(std::string_view str, std::string_view pattern = " \f\n\r\t\v")
173{
174 return std::string(TrimStringView(str, pattern));
175}
176
177[[nodiscard]] inline std::string_view RemoveSuffixView(std::string_view str, std::string_view suffix)
178{

Callers 9

ReadMethod · 0.85
readStdinFunction · 0.85
ReadMethod · 0.85
BOOST_AUTO_TEST_CASEFunction · 0.85
BOOST_FIXTURE_TEST_CASEFunction · 0.85
FUZZ_TARGETFunction · 0.85
ToStringMethod · 0.85
GetConfigOptionsFunction · 0.85
ParseMoneyFunction · 0.85

Calls 1

TrimStringViewFunction · 0.85

Tested by 3

BOOST_AUTO_TEST_CASEFunction · 0.68
BOOST_FIXTURE_TEST_CASEFunction · 0.68
FUZZ_TARGETFunction · 0.68