STRING::ISUPPER
1g 2024-04-10 laplante@plcb.ca GOWEB/STRING — Check for Uppercase Characterstitle: “STRING::ISUPPER” version: “1.0.0” date: 2024-04-10 author: “laplante@plcb.ca” section: “1g”
string::isupper Check for Uppercase Characters
string::isupper(string[, error: variable, string...])
isupper(string[, error: variable, string...])
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.
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
laplante@plcb.ca