isWhitespace overloads
Synopses
Declared in <mrdocs/Support/String.hpp>
Determine if a character is whitespace.
constexpr
bool
isWhitespace(char c) noexcept;
Determine if a string is only whitespace.
constexpr
bool
isWhitespace(std::string_view s) noexcept;
Return Value
-
trueifcis a horizontal or vertical whitespace character. -
true if the string is empty or contains only whitespace characters (space, tab, newline, vertical tab, form feed, carriage return). false otherwise.
Parameters
Name |
Description |
c |
Character to inspect. |
s |
The string to check. |
Created with MrDocs