Check if wide character is blank
Checks whether c is a blank character.
A blank character is a space character used to separate words within a line of text.
The standard "C" locale considers blank characters the tab character (L'\t') and the space character (L' ').
Other locales may consider blank a different selection of characters, but they must all also be space characters by isspace.
This function is the wide-character equivalent of isblank (<cctype>): If c translates with wctob to a character for which isblank is true, it is always considered a blank character by this function too.
In C++, a locale-specific template version of this function (isblank) 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 blank character. Zero (i.e., false) otherwise.
/* iswblank example */
int main ()
wchar_t str = L"Example sentence to test iswblank\n";
c = str[i];
if (iswblank(c)) c = L'\n';
- Check if character is blank (function
- Check if wide character is a white-space (function
- Check if wide character has graphical representation (function
- Check if wide character is punctuation character (function
- Check if wide character is alphanumeric (function
- isblank (locale)
- Check if character is blank using locale (function template