string_assign_string Subroutine

private elemental subroutine string_assign_string(lhs, rhs)

Arguments

Type IntentOptional AttributesName
class(string), intent(inout) :: lhs

Left hand side.

type(string), intent(in) :: rhs

Right hand side.

Description

Assignment operator from string input.


Source Code

  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