mrdocs::isDigit

isDigit overloads

Synopses

Declared in <mrdocs/Support/String.hpp>

Determine if a character is an ASCII digit.

constexpr
bool
isDigit(char const c) noexcept;
» more...

Determine if every character in a string is an ASCII digit.

constexpr
bool
isDigit(std::string_view const s) noexcept;
» more...

Return Value

  • true if c is between '0' and '9'.
  • true if all characters are digits.

Parameters

NameDescription
cCharacter to inspect.
sString to inspect.