FUTILS
Some basic Fortran Utilities
Loading...
Searching...
No Matches
strings_m::operator(//) Interface Reference
Collaboration diagram for strings_m::operator(//):

Public Member Functions

pure character(len=:) function, allocatable concat_character_and_string (lhs, rhs)
pure character(len=:) function, allocatable concat_string_and_character (lhs, rhs)
pure character(len=:) function, allocatable concat_string_and_string (lhs, rhs)

Detailed Description

Definition at line 53 of file strings.f90.

Member Function/Subroutine Documentation

◆ concat_character_and_string()

pure character(len=:) function, allocatable strings_m::operator(//)::concat_character_and_string ( character(len=*), intent(in) lhs,
type(string_t), intent(in) rhs )

Definition at line 144 of file strings.f90.

145 implicit none
146 character(len=*), intent(in) :: lhs
147 type(string_t), intent(in) :: rhs
148 character(len=:), allocatable :: retval
149
150 allocate(character(len(lhs)+rhs%len) :: retval)
151 retval = lhs//rhs%s
152

◆ concat_string_and_character()

pure character(len=:) function, allocatable strings_m::operator(//)::concat_string_and_character ( type(string_t), intent(in) lhs,
character(len=*), intent(in) rhs )

Definition at line 155 of file strings.f90.

156 implicit none
157 type(string_t), intent(in) :: lhs
158 character(len=*), intent(in) :: rhs
159 character(len=:), allocatable :: retval
160
161 allocate(character(len(rhs)+lhs%len) :: retval)
162 retval = lhs%s//rhs
163

◆ concat_string_and_string()

pure character(len=:) function, allocatable strings_m::operator(//)::concat_string_and_string ( type(string_t), intent(in) lhs,
type(string_t), intent(in) rhs )

Definition at line 166 of file strings.f90.

167 implicit none
168 type(string_t), intent(in) :: lhs, rhs
169 character(len=:), allocatable :: retval
170
171 allocate(character(lhs%len+rhs%len) :: retval)
172 retval = lhs%s//rhs%s
173

The documentation for this interface was generated from the following file: