STRING::ISGRAPH 1g 2024-04-10 laplante@plcb.ca GOWEB/STRING — Check for Graphic Characters


title: “STRING::ISGRAPH” version: “1.0.0” date: 2024-04-10 author: “laplante@plcb.ca” section: “1g”

category: “GOWEB/STRING”

Name

string::isgraph Check for Graphic Characters

Synopsis

string::isgraph(string[, error: variable, string...])
isgraph(string[, error: variable, string...])

Description

The isgraph function checks whether the provided string contains only graphic (printable, non-space) characters.

Graphic characters include:

Note: Whitespace characters such as space, tab, and newline are not considered graphic.


Examples

res={{
    isgraph("A"); "\n";
    isgraph(" "); "\n";
    isgraph("\n"); "\n";
    isgraph("0123456789"); "\n";
    isgraph("0123456789"); "\n";
    isgraph("01234e56789"); "\n";
    isgraph("01234.56789"); "\n";
    isgraph("0123456789"); "\n";
    isgraph("0123456789"); "\n";
    isgraph("01234e56789"); "\n";
    isgraph("01234.56789"); "\n";
}}.

Returns:

res=true
true
false
true
true
false
false
true
true
false
false

Author

laplante@plcb.ca

See Also


Version