tolower(3f) - [M_strings__chars:CASE] changes a string to lowercase over specified range (LICENSE:MIT)
Synopsis
Description
Options
Returns
Examples
Author
License
pure function tolower(str,begin,end) result (string)
character(len=1),intent(in) :: str(:) character(len=1) :: string(size(str)
tolower(str) returns a copy of the ASCII character array with all characters converted to miniscule (ie. "lowercase")
str character array to convert to miniscule
tolower copy of the input array with all characters converted to lowercase.
Sample program:
program demo_tolower use M_strings__chars, only: tolower implicit none character(len=1),allocatable :: s(:) s=transfer( ABCDEFG abcdefg ,A,size=17) write(*,*) mixed-case input string is ....,s write(*,*) lower-case output string is ...,tolower(s) end program demo_tolower
John S. Urban
Nemo Release 3.1 | tolower (3) | June 29, 2025 |