This function replicates the functionality of its C-library equivalent isgraph. See isgraph for more info.
- Character to be checked.
- Locale to be used. Shall have facet ctype present.
Template parameter charT is the character type.
Return Valuetrue if indeed c has graphical representation, false otherwise.
This example prints out the contents of myfile.txt without spaces and special characters, i.e. only prints out the characters that qualify as isgraph.
|ctype||Character type facet (class template)|
|isgraph (cctype)||Check if character has graphical representation using locale (function template)|
|isprint||Check if character is printable using locale (function template)|
|isspace||Check if character is a white-space using locale (function template)|
|isalnum||Check if character is alphanumeric using locale (function template)|