STRING::ISSPACE
1g 2024-04-11 laplante@plcb.ca GOWEB/STRING — Check for Whitespace Characterstitle: “STRING::ISSPACE” version: “1.0.0” date: 2024-04-11 author: “laplante@plcb.ca” section: “1g”
string::isspace Check for Whitespace Characters
string::isspace(string[, error: variable, string...])
isspace(string[, error: variable, string...])
The isspace
function checks whether the provided string contains only whitespace characters.
According to the Unicode standard, the following characters are considered whitespace:
res={{
isspace(" "); "\n";
isspace("\n"); "\n";
isspace("123"); "\n";
isblank(" "); "\n";
isblank("\n"); "\n";
isblank("123"); "\n";
isblank(" "); "\n";
isblank(" "); "\n";
isblank("
"); "\n";
isblank("
"); "\n";
isblank(" _"); "\n";
isblank(" _"); "\n";
}}.
Returns:
res=true
true
false
true
false
false
true
true
false
false
false
false
laplante@plcb.ca