operator(==) Interface

public interface operator(==)

Element-wise comparison of two strings.


Contents


Module Procedures

private pure elemental function string_eq_string(lhs, rhs) result(rst)

Tests two strings for equality.

Arguments

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

The left-hand-side argument.

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

The right-hand-side argument.

Return Value logical

True if the strings are equal; else, false.

private pure elemental function char_eq_string(lhs, rhs) result(rst)

Tests two strings for equality.

Arguments

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

The left-hand-side argument.

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

The right-hand-side argument.

Return Value logical

True if the strings are equal; else, false.

private pure elemental function string_eq_char(lhs, rhs) result(rst)

Tests two strings for equality.

Arguments

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

The left-hand-side argument.

character(len=*), intent(in) :: rhs

The right-hand-side argument.

Return Value logical

True if the strings are equal; else, false.