@@ -7,9 +7,11 @@ submodule (stdlib_strings) stdlib_strings_format_string
7
7
8
8
contains
9
9
10
- #:for kind, type in RIL_KINDS_TYPES
11
- module procedure format_string_${type[0]}$${kind}$
12
- !! Format ${type}$ variable as character sequence
10
+
11
+ #:for kind, type in RIL_KINDS_TYPES
12
+ !> Format ${type}$ variable as character sequence
13
+ module procedure format_string_${type[0]}$_${kind}$
14
+
13
15
character(len=buffer_len) :: buffer
14
16
integer :: stat
15
17
@@ -21,17 +23,19 @@ contains
21
23
!!\TODO: *?
22
24
end if
23
25
24
- end procedure format_string_${type[0]}$${kind}$
25
- #:endfor
26
+ end procedure format_string_${type[0]}$_${kind}$
27
+
28
+ #:endfor
29
+
30
+ #:for kind, type in CMPLX_KINDS_TYPES
31
+ !> Format ${type}$ variable as character sequence
32
+ module procedure format_string_${type[0]}$_${kind}$
26
33
27
- #:for kind, type in CMPLX_KINDS_TYPES
28
- module procedure format_string_${type[0]}$${kind}$
29
- !! Format ${type}$ variable as character sequence
34
+ string = '(' // format_string_r_${kind}$(val%re, fmt) // ',' // &
35
+ & format_string_r_${kind}$(val%im, fmt) // ')'
30
36
31
- string = '('//format_string_r${kind}$(val%re, fmt)//','// &
32
- format_string_r${kind}$(val%im, fmt)//')'
37
+ end procedure format_string_${type[0]}$_${kind}$
33
38
34
- end procedure format_string_${type[0]}$${kind}$
35
- #:endfor
39
+ #:endfor
36
40
37
41
end submodule stdlib_strings_format_string
0 commit comments