std::isprint

std::isprint

Defined in header <cctype>
int isprint( int ch );

Checks if ch is a printable character as classified by the currently installed C locale. In the default, "C" locale, the following characters are printable:

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

The behavior is undefined if the value of 登录查看完整内容