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


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

category: “GOWEB/STRING”

Name

string::isupper Check for Uppercase Characters

Synopsis

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

Description

The isupper function checks whether the provided string contains only uppercase characters.

It evaluates each character in the string and returns:

Characters that are not letters (digits, symbols, punctuation) do not affect the result unless the function is strictly validating only uppercase letters.


Examples

res={{
    isupper("HELLO"); "\n";
    isupper("HELLO123"); "\n";
    isupper("HELLO-WORLD"); "\n";
    isupper("Hello"); "\n";
    isupper("hello"); "\n";
    isupper(""); "\n";
}}.

Returns:

res=true
true
true
false
false
false

Author

laplante@plcb.ca

See Also


Version