isupper - Checks for a upper-case character.
isupper("…");
This function is used to determine whether a character is an upper letter or not. The argument of the function can be a single character or a string, each character of it has to be an upper letter for the function to be true. The variable can be a chain of characters defined before the program.
Notice that what is considered a letter may depend on the locale being used. In the default "C" locale, a upper letter is any of these: a b c d e f g h i j k l m n o p q r s t u v w x y z.
Other locales may consider a different selection of characters as "upper characters" but they will never consider characters returning true for ischtrl, isdigit, ispunct or isspace.
Iswupper operates on wide characters while isupper operates on single byte characters. If your locale is multibyte, iswupper is the best solution.
if isupper(a) then "ok"; else "nok"; endif
{{ include("includes/strings.sn") }}
Written by Pierre Laplante and Caroline Laplante, <laplante@sednove.com>
1.0 2014-09-09 21:24:14 laplante@sednove.com
Edit© 2024 extenso Inc. All rights reserved.