tetl 0.1.0
Embedded Template Library
Loading...
Searching...
No Matches
iswspace.hpp
Go to the documentation of this file.
1// SPDX-License-Identifier: BSL-1.0
2
3#ifndef TETL_CWCTYPE_ISWSPACE_HPP
4#define TETL_CWCTYPE_ISWSPACE_HPP
5
7
8namespace etl {
9
27[[nodiscard]] constexpr auto iswspace(wint_t ch) noexcept -> int
28{
29 auto const sp = ch == L' ';
30 auto const form = ch == L'\f';
31 auto const line = ch == L'\n';
32 auto const carriage = ch == L'\r';
33 auto const hTab = ch == L'\t';
34 auto const vTab = ch == L'\v';
35 return static_cast<int>(sp || form || line || carriage || hTab || vTab);
36}
37} // namespace etl
38
39#endif // TETL_CWCTYPE_ISWSPACE_HPP
constexpr auto iswspace(wint_t ch) noexcept -> int
Checks if the given wide character is a wide whitespace character as classified by the currently inst...
Definition iswspace.hpp:27
Definition adjacent_find.hpp:8
unsigned int wint_t
Definition wint_t.hpp:29