|
|
The next group of functions are the comparisons.
int String::operator==(const String&) const;
The comparison operators (==,
!=, <,
<=, >=, and
>) are all implemented for Strings.
s == t is true if Strings s
and t represent identical sequences of characters.
As usual, != is the negation of
==. The other comparison operators implement lexicographic
ordering using native character comparison. If String s
is a proper initial substring of String
t, then s < t
is true.