The symbol spelling of a lowercase relational operator; other text is returned unchanged.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(in) | :: | text |
operator text, in lowercase |
pure function canonical_relational(text) result(t) !! The symbol spelling of a lowercase relational operator; other text is returned unchanged. character(len=*), intent(in) :: text !! operator text, in lowercase character(len=:), allocatable :: t integer :: r r = findloc(LETTERS, text, dim=1) if (r > 0) then t = trim(SYMBOLS(r)) else t = text end if end function canonical_relational