11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
43 use dc_string, only: strieq
44 implicit none
45 character(*), intent(in):: str
46 integer:: symbol
47 integer:: unit_str_size, i
48 character(TOKEN):: unit
49 continue
50 unit = adjustl(str)
52 do i = 1, unit_str_size
55 return
56 end if
57 end do
58
60 do i = 1, unit_str_size
61 if (strieq(trim(unit), trim(
unit_sec(i))))
then
63 return
64 end if
65 end do
66
68 do i = 1, unit_str_size
69 if (strieq(trim(unit), trim(
unit_min(i))))
then
71 return
72 end if
73 end do
74
76 do i = 1, unit_str_size
77 if (strieq(trim(unit), trim(
unit_hour(i))))
then
79 return
80 end if
81 end do
82
84 do i = 1, unit_str_size
85 if (strieq(trim(unit), trim(
unit_day(i))))
then
87 return
88 end if
89 end do
90
92 do i = 1, unit_str_size
93 if (strieq(trim(unit), trim(
unit_month(i))))
then
95 return
96 end if
97 end do
98
100 do i = 1, unit_str_size
101 if (strieq(trim(unit), trim(
unit_year(i))))
then
103 return
104 end if
105 end do
106
108
character(*), dimension(6), parameter, public unit_month
integer, parameter, public unit_symbol_err
integer, parameter, public unit_symbol_hour
integer, parameter, public unit_symbol_min
integer, parameter, public unit_symbol_month
character(*), dimension(1), parameter, public unit_nondim
integer, parameter, public unit_symbol_sec
integer, parameter, public unit_symbol_nondim
character(*), dimension(4), parameter, public unit_day
character(*), dimension(8), parameter, public unit_sec
character(*), dimension(8), parameter, public unit_hour
integer, parameter, public unit_symbol_day
character(*), dimension(4), parameter, public unit_year
integer, parameter, public unit_symbol_year
character(*), dimension(4), parameter, public unit_min
integer, parameter, public token
単語やキーワードを保持する文字型変数の種別型パラメタ