Returns lowercase version of the CK
string.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(kind=CK,len=*), | intent(in) | :: | str | input string |
lowercase version of the string
pure elemental function lowercase_string(str) result(s_lower)
implicit none
character(kind=CK,len=*),intent(in) :: str !! input string
character(kind=CK,len=(len(str))) :: s_lower !! lowercase version of the string
integer :: i !! counter
integer :: j !! index of uppercase character
s_lower = str
do i = 1, len_trim(str)
j = index(upper,s_lower(i:i))
if (j>0) s_lower(i:i) = lower(j:j)
end do
end function lowercase_string