ASCII 英字を小文字化した文字列を返す。
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(in) | :: | s |
pure function lower_ascii(s) result(out) character(len=*), intent(in) :: s character(len=len(s)) :: out integer :: i, code out = s do i = 1, len(s) code = iachar(out(i:i)) if (code >= iachar('A') .and. code <= iachar('Z')) then out(i:i) = achar(code + 32) end if end do end function lower_ascii