STRING::ISGRAPH
1g 2024-04-10 laplante@plcb.ca GOWEB/STRING — Check for Graphic Characterstitle: “STRING::ISGRAPH” version: “1.0.0” date: 2024-04-10 author: “laplante@plcb.ca” section: “1g”
string::isgraph Check for Graphic Characters
string::isgraph(string[, error: variable, string...])
isgraph(string[, error: variable, string...])
The isgraph
function checks whether the provided string contains only graphic (printable, non-space) characters.
Graphic characters include:
0
to 9
Note: Whitespace characters such as space, tab, and newline are not considered graphic.
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
laplante@plcb.ca