mrdocs::isDigit

isDigit overloads

Synopses

Determine if a character is an ASCII digit.

constexpr
bool
isDigit(char const c) noexcept;

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

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

Return Value

  • true if c is between '0' and '9'.

  • true if all characters are digits.

Parameters

Name

Description

c

Character to inspect.

s

String to inspect.

Created with MrDocs