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