is_lower Function

public elemental function is_lower(c)

Checks whether c is a lowercase ASCII letter (a .. z).

Arguments

Type IntentOptional Attributes Name
character(len=1), intent(in) :: c

The character to test.

Return Value logical


Variables

Type Visibility Attributes Name Initial
integer, private :: ic

Source Code

   elemental logical function is_lower(c)
      character(len=1), intent(in) :: c
          !! The character to test.
      integer :: ic
      ic = iachar(c)
      is_lower = ic >= iachar('a') .and. ic <= iachar('z')
   end function is_lower