Compare two character sequences for being less or equal. In this version the left-hand side character sequences is by a string.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(string_type), | intent(in) | :: | lhs | |||
| character(len=*), | intent(in) | :: | rhs |
elemental function le_string_char(lhs, rhs) result(is_le) type(string_type), intent(in) :: lhs character(len=*), intent(in) :: rhs logical :: is_le is_le = .not. (lhs > rhs) end function le_string_char