operator(==) Interface

public interface operator(==)

Compare two character sequences for equality, the left-hand side, the right-hand side or both character sequences can be represented by a string.

This operator is elemental and returns a default logical scalar value.

Calls

interface~~operator(==)~~CallsGraph interface~operator(==) operator(==) proc~eq_char_string eq_char_string interface~operator(==)->proc~eq_char_string proc~eq_string_char eq_string_char interface~operator(==)->proc~eq_string_char proc~eq_string_string eq_string_string interface~operator(==)->proc~eq_string_string

Module Procedures

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

Compare two character sequences for equality. In this version both character sequences are by a string.

Arguments

Type IntentOptional Attributes Name
type(string_type), intent(in) :: lhs
type(string_type), intent(in) :: rhs

Return Value logical

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

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

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

Arguments

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

Return Value logical