ne_string_char Function

private elemental function ne_string_char(lhs, rhs) result(is_ne)

Compare two character sequences for inequality. 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~~ne_string_char~~CalledByGraph proc~ne_string_char ne_string_char interface~operator(SLASH=) operator(/=) interface~operator(SLASH=)->proc~ne_string_char

Source Code

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

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

end function ne_string_char