Turn s into lowercase in place, without a temporary copy (see lower_char).
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(inout) | :: | s |
the text |
pure subroutine make_lowercase(s) !! Turn `s` into lowercase in place, without a temporary copy (see [[lower_char]]). character(len=*), intent(inout) :: s !! the text integer :: k do k = 1, len(s) if (s(k:k) >= 'A' .and. s(k:k) <= 'Z') s(k:k) = achar(iachar(s(k:k)) + 32) end do end subroutine make_lowercase