eq_string_char Function

private elemental function eq_string_char(lhs, rhs) result(is_eq)

Compare two character sequences for equality. In this version the left-hand side character sequences is by a string.

Arguments

Type IntentOptional Attributes Name
type(string_type), intent(in) :: lhs
character(len=*), intent(in) :: rhs

Return Value logical


Called by

proc~~eq_string_char~~CalledByGraph proc~eq_string_char eq_string_char interface~operator(==) operator(==) interface~operator(==)->proc~eq_string_char

Source Code

elemental function eq_string_char(lhs, rhs) result(is_eq)
   type(string_type), intent(in) :: lhs
   character(len=*), intent(in) :: rhs
   logical :: is_eq

   is_eq = .not. (lhs > rhs)
   if (is_eq) then
      is_eq = .not. (rhs > lhs)
   end if

end function eq_string_char