Name

iswblank - test for whitespace wide character

Library

libc.lib

Synopsis

  #include <wctype.h>
  int iswblank (wint_t wch);

Return values

The functions return non-zero if ’wch’ is wide blank character and zero otherwise.

Detailed description

The iswblank() function tests whether ’wch’ is a wide-character that belongs to the character class - blank (see defns for definition). The character class blank contains the character space(’ ’) and the horizontal tabulation(’     ’).

The result of this function is undefined unless the argument is WEOF or a valid wchar_t value.

The functionality of this API is independent of the program’s current locale and so it returns non-zero for all the characters (of various locales supported) that belong to the class blank, irrespective of the locale they belong to.


Examples

#include<wctype.h> //iswblank()
#include<stdio.h> //printf()
int test_iswblank()
{
   int arr[]={0x0020,’0’,0x0009,’R’,0x3000, 0x000A, 0x002};
   int i = 0;
   int size = 7;
   for( i=0; i<size; i++)
   {
     int ret = iswblank(arr[i]); //call to the API with the chars in arr[]
     if( (!ret) != 0 )
     {
        printf("\n%lc is not wide blank ", arr[i]);
     }
     else
     {
        printf("\n%lc is wide blank", arr[i]);
     }
   }
printf("\n");
}


Output

is wide blank
0 is not wide blank
     is wide blank
R is not wide blank
กก is wide blank
 is not wide blank
 is not wide blank


See also

iswctype

Feedback

For additional information or queries on this page send feedback

© 2008 Nokia Corporation. All rights reserved. This documentation can be used in the connection with this Product to help and support the user.

Top