@@ -7,9 +7,11 @@ submodule (stdlib_strings) stdlib_strings_format_string
77
88contains
99
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+
1315 character(len=buffer_len) :: buffer
1416 integer :: stat
1517
@@ -21,17 +23,19 @@ contains
2123 !!\TODO: *?
2224 end if
2325
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}$
2633
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) // ')'
3036
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}$
3338
34- end procedure format_string_${type[0]}$${kind}$
35- #:endfor
39+ #:endfor
3640
3741end submodule stdlib_strings_format_string
0 commit comments