MCPcopy Create free account
hub / github.com/ElementsProject/elements / IsSpace

Function IsSpace

src/util/strencodings.h:152–154  ·  view source on GitHub ↗

* Tests if the given character is a whitespace character. The whitespace characters * are: space, form-feed ('\f'), newline ('\n'), carriage return ('\r'), horizontal * tab ('\t'), and vertical tab ('\v'). * * This function is locale independent. Under the C locale this function gives the * same result as std::isspace. * * @param[in] c character to test * @return true if the a

Source from the content-addressed store, hash-verified

150 * @return true if the argument is a whitespace character; otherwise false
151 */
152constexpr inline bool IsSpace(char c) noexcept {
153 return c == ' ' || c == '\f' || c == '\n' || c == '\r' || c == '\t' || c == '\v';
154}
155
156/**
157 * Convert string to integral type T. Leading whitespace, a leading +, or any

Callers 6

DecodeBase58Function · 0.85
SetHexMethod · 0.85
FUZZ_TARGET_INITFunction · 0.85
LegacyParsePrechecksFunction · 0.85
ParseHexFunction · 0.85
ParseMoneyFunction · 0.85

Calls

no outgoing calls

Tested by 2

FUZZ_TARGET_INITFunction · 0.68
LegacyParsePrechecksFunction · 0.68