iswgraph

Checks whether c is a character with graphical representation.

ISWGRAPH

NAME

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

SYNOPSIS

iswgraph("…");

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 iswgraph(a) then
        "ok";
else
        "nok";
endif

SEE ALSO

{{ include("includes/strings.sn") }}

AUTHOR

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

MODIFICATIONS

1.0 2014-09-09 21:24:14 laplante@sednove.com

Edit

© 2024 extenso Inc. All rights reserved.