String comparison: Difference between revisions
m
→{{header|Fortran}}
m (→{{header|Fortran}}: Why I dislike this usage.) |
|||
Line 927:
Exact matching is problematic, because trailing spaces are disregarded so that <code>"blah" .EQ. "blah "</code> yields ''true''. Thus, the quality of equality is strained. To test for "exact" equality the lengths would have to be compared also, as in <code>TEXT1.EQ.TEXT2 .AND. LEN(TEXT1).EQ.LEN(TEXT2)</code>
All character comparisons are literal: case counts. There is no facility for case insensitive comparison (though in principle a compiler could
=={{header|F_Sharp|F#}}==
|