function

isgraph . string . sncode

VERSIONlatest Checks whether c is a character with graphical representation.

ISGRAPH

NAME

isgraph - Checks whether c is a character with graphical representation.

SYNOPSIS

isgraph("…");

DESCRIPTION

This function is used to determine if the argument is a printable character, except for the space character. Then, it is said to have a graphical representation. The characters with graphical representation are all the characters that can be printed except for the space character. A printable character is a character that occupies a printing position on a display, that will appear in the output. The argument can be a single character or a string. In the latter case, each character has to have a graphic representation for the function to be true.

Iswgraph operates on wide characters while isgraph operates on single byte characters. If your locale is multibyte, iswgraph would be the prefered solution.

EXAMPLES

if isgraph(a) then
        "ok";
else
        "nok";
endif

AUTHOR

Written by Pierre Laplante and Caroline Laplante, <laplante@sednove.com>