Compare two character sequences for equality. In this version the right-hand side character sequences is by a string.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(in) | :: | lhs | |||
| type(string_type), | intent(in) | :: | rhs |
elemental function eq_char_string(lhs, rhs) result(is_eq) character(len=*), intent(in) :: lhs type(string_type), 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_char_string