String class
comparison operators (String)
// EXAMPLE
String s1 = "test1";
String s2 = "test2";
if (s1 < s2) {
Log.info("s1 is less than s2");
}
// PROTOTYPES
unsigned char operator < (const String &rhs) const;
unsigned char operator > (const String &rhs) const;
unsigned char operator <= (const String &rhs) const;
unsigned char operator >= (const String &rhs) const;
In addition to the compareTo
method, the class also supports the comparison operators, <
, <=
, >
, >=
.