Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(string), | intent(in) | :: | lhs | Left hand side. |
||
character(kind=CK,len=*), | intent(in) | :: | rhs | Right hand side. |
Concatenated string.
Concatenation with character.
pure function string_concat_character(lhs, rhs) result(concat)
!---------------------------------------------------------------------------------------------------------------------------------
!< Concatenation with character.
!---------------------------------------------------------------------------------------------------------------------------------
class(string), intent(in) :: lhs !< Left hand side.
character(kind=CK, len=*), intent(in) :: rhs !< Right hand side.
character(kind=CK, len=:), allocatable :: concat !< Concatenated string.
!---------------------------------------------------------------------------------------------------------------------------------
!---------------------------------------------------------------------------------------------------------------------------------
if (allocated(lhs%raw)) then
concat = lhs%raw//rhs
else
concat = rhs
endif
return
!---------------------------------------------------------------------------------------------------------------------------------
endfunction string_concat_character