Check if wide character is a white-space
Checks whether c is a white-space character.
A white-space is a character considered by a specific locale as a space separating words, lines and/or paragraphs.
This function is the wide-character equivalent of isspace (<cctype>): If c translates with wctob to a character for which isspace is true, it is always considered a white-space character by this function too.
In C++, a locale-specific template version of this function (isspace) exists in header <locale> for all character types.
- Wide character to be checked, casted to a wint_t, or WEOF.
wint_t is an integral type.
A value different from zero (i.e., true) if indeed c is a white-space character. Zero (i.e., false) otherwise.
/* iswspace example */
int main ()
wchar_t str = L"Example sentence to test iswspace\n";
if (iswspace(c)) c = L'\n';
- Check if character is a white-space (function
- Check if wide character has graphical representation (function
- Check if wide character is punctuation character (function
- isspace (locale)
- Check if character is a white-space using locale (function template)