Manual Reference Pages - tolower (3m_strings__chars)
NAME
tolower(3f) - [M_strings__chars:CASE] changes a string to lowercase over
specified range
(LICENSE:MIT)
CONTENTS
Synopsis
Description
Options
Returns
Examples
Author
License
SYNOPSIS
pure function tolower(str,begin,end) result (string)
character(len=1),intent(in) :: str(:)
character(len=1) :: string(size(str)
DESCRIPTION
tolower(str) returns a copy of the ASCII character array with all
characters converted to miniscule (ie. "lowercase")
OPTIONS
|
str |
character array to convert to miniscule
|
|
RETURNS
|
tolower |
| |
copy of the input array with all characters converted to
lowercase.
|
|
EXAMPLES
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
AUTHOR
John S. Urban
LICENSE
MIT