Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(string), | intent(inout) | :: | lhs | Left hand side. |
||
type(string), | intent(in) | :: | rhs | Right hand side. |
Assignment operator from string input.
elemental subroutine string_assign_string(lhs, rhs)
!---------------------------------------------------------------------------------------------------------------------------------
!< Assignment operator from string input.
!---------------------------------------------------------------------------------------------------------------------------------
class(string), intent(inout) :: lhs !< Left hand side.
type(string), intent(in) :: rhs !< Right hand side.
!---------------------------------------------------------------------------------------------------------------------------------
!---------------------------------------------------------------------------------------------------------------------------------
if (allocated(rhs%raw)) lhs%raw = rhs%raw
return
!---------------------------------------------------------------------------------------------------------------------------------
endsubroutine string_assign_string