V3FIT
Main Page
Related Pages
Modules
Modules List
Module Members
All
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions/Subroutines
a
b
c
d
e
f
g
h
i
l
m
o
p
r
s
t
u
v
w
y
Variables
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Data Types List
Data Types List
Data Types
Class Hierarchy
Data Fields
All
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
x
y
z
~
Functions/Subroutines
a
b
c
d
e
f
g
i
l
m
n
p
r
s
t
u
v
x
y
~
Variables
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
x
y
z
Files
File List
File Members
All
b
c
g
i
l
m
n
p
t
v
w
Functions/Subroutines
b
c
g
i
m
p
t
v
w
Variables
Enumerations
Macros
•
All
Classes
Namespaces
Files
Functions
Variables
Enumerations
Macros
Pages
LIBSTELL
Sources
Miscel
tolower.f90
1
SUBROUTINE
tolower(string)
2
! convert a string to lower case
3
! note: string should NOT be a parameter (constant) or this seg faults
4
CHARACTER (len=*)
,
INTENT(inout)
:: string
5
INTEGER
:: i,ic,nlen,icLow,icHigh,icDel
6
7
iclow = ichar(
'A'
)
8
ichigh = ichar(
'Z'
)
9
icdel = ichar(
'a'
) - ichar(
'A'
)
10
nlen = len(string)
11
DO
i=1,nlen
12
ic = ichar(string(i:i))
13
IF
(ic >= iclow .and. ic < ichigh) string(i:i) = char(ic+icdel)
14
END DO
15
16
END SUBROUTINE
tolower
Generated on Thu Mar 5 2020 15:49:23 for V3FIT by
1.8.17