mrdocs::isWhitespace

Determine if a string is only whitespace.

Synopses

Declared in <mrdocs/Support/String.hpp>

constexpr
bool
isWhitespace(char c) noexcept;

Determine if a string is only whitespace.

constexpr
bool
isWhitespace(std::string_view s) noexcept;

Return Value

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

s

The string to check.

Created with MrDocs