Within Fortran, what are the library functions, if any (I'm using gfortran 11) that return whether the character is upper or lower case?
character :: c
c = 'l'
print *, is_lower(c) ! should display 'T'
print *, is_upper(c) ! should display 'F'
c = 'L'
print *, is_upper(c) ! should display 'T'
What should I be using in place of is_lower
and is_upper
? I can try to roll my own, but the comparison operators are weird enough with characters that I can't be sure of exactly what I'm doing.