File tree 1 file changed +3
-2
lines changed
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -98,6 +98,7 @@ pure logical function is_control(c)
98
98
pure logical function is_digit(c)
99
99
character (len= 1 ), intent (in ) :: c ! ! The character to test.
100
100
integer :: ic
101
+ ic = iachar (c)
101
102
is_digit = (iachar (' 0' ) <= ic) .and. (ic <= iachar (' 9' ))
102
103
end function
103
104
@@ -110,7 +111,7 @@ pure logical function is_octal_digit(c)
110
111
end function
111
112
112
113
! > Checks whether `c` is a digit in base 16 (0 .. 9, A .. F, a .. f).
113
- pure logical function is_hex_digit(cin )
114
+ pure logical function is_hex_digit(c )
114
115
character (len= 1 ), intent (in ) :: c ! ! The character to test.
115
116
integer :: ic
116
117
ic = iachar (c)
@@ -148,7 +149,7 @@ pure logical function is_printable(c)
148
149
end function
149
150
150
151
! > Checks whether `c` is a lowercase ASCII letter (a .. z).
151
- pure logical function is_lower(cin )
152
+ pure logical function is_lower(c )
152
153
character (len= 1 ), intent (in ) :: c ! ! The character to test.
153
154
is_lower = (c >= ' a' ) .and. (c <= ' z' )
154
155
end function
You can’t perform that action at this time.
0 commit comments