Go back to Richel Bilderbeek's homepage.

Go back to Richel Bilderbeek's C++ page.

 

 

 

 

 

(C++) std::iswgraph

 

std::iswgraph is an STL function to check if a wchar_t is a printable character other than a space.

 

#include <cwctype>
#include <iostream>

int main()
{
  for (wchar_t i = 0; i!=256; ++i)
  {
    if (std::iswgraph(i))
    {
      std::wcout << i;
    }
  }
}

 

Screen output:

 

!"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~

 

 

 

 

 

Go back to Richel Bilderbeek's C++ page.

Go back to Richel Bilderbeek's homepage.

 

Valid XHTML 1.0 Strict