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

Function IsDigit

src/util/strencodings.h:136–139  ·  view source on GitHub ↗

* Tests if the given character is a decimal digit. * @param[in] c character to test * @return true if the argument is a decimal digit; otherwise false. */

Source from the content-addressed store, hash-verified

134 * @return true if the argument is a decimal digit; otherwise false.
135 */
136constexpr bool IsDigit(char c)
137{
138 return c >= '0' && c <= '9';
139}
140
141/**
142 * Tests if the given character is a whitespace character. The whitespace characters

Callers 5

BOOST_AUTO_TEST_CASEFunction · 0.85
FUZZ_TARGET_INITFunction · 0.85
ParseFixedPointFunction · 0.85
FormatMoneyFunction · 0.85
ParseMoneyFunction · 0.85

Calls

no outgoing calls

Tested by 2

BOOST_AUTO_TEST_CASEFunction · 0.68
FUZZ_TARGET_INITFunction · 0.68