Core Function IsGraph
From Sputnik Wiki
IsGraph( <expression> )
Contents |
Description
Checks if the given string contains only characters that have a graphical representation, i.e.
It is either a number (0123456789), an uppercase letter (ABCDEFGHIJKLMNOPQRSTUVWXYZ), a lowercase letter (abcdefghijklmnopqrstuvwxyz), or a punctuation character(!"#$%&'()*+,-./:;<=>?@[\]^_`{|}~), or any graphical character.
Parameters
expression
The string to use.
Return Value
Success: Returns 1.
Failure: Returns 0.
Remarks
None.
Example
for (my $ndx=0; $ndx <= @CHAR_MAX; $ndx++) if (isgraph($ndx)) printf("%c", $ndx); printf("\n");