STRING::ISSPACE 1g 2024-04-11 laplante@plcb.ca GOWEB/STRING — Check for Whitespace Characters


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

category: “GOWEB/STRING”

Name

string::isspace Check for Whitespace Characters

Synopsis

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

Description

The isspace function checks whether the provided string contains only whitespace characters.

According to the Unicode standard, the following characters are considered whitespace:


Examples

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

Author

laplante@plcb.ca

See Also


Version