Comparison Operators and methods

Comparison Operators and methods

Module description

Functions

int Compare (const MaxString &) const
 Check if the strings are equal. More...
 
int CompareIgnoreCase (const MaxString &) const
 Compare this string with another while ignoring the case. More...
 
bool operator== (const MaxString &) const
 Equality operator. More...
 
bool operator!= (const MaxString &) const
 Inequality operator. More...
 
bool operator< (const MaxString &) const
 Returns true if this string is less than the other; otherwise false. More...
 
bool operator<= (const MaxString &) const
 Returns true if this string is less than or equal to the other; otherwise false. More...
 
bool operator> (const MaxString &) const
 Returns true if this string is greater than the other; otherwise false. More...
 
bool operator>= (const MaxString &) const
 Returns true if this string is greater than or equal to the other; otherwise false. More...
 

Function Documentation

int Compare ( const MaxString ) const

Check if the strings are equal.

A common code page is determined for the 2 MaxStrings, strings with those encodings are created if necessary, and then strcmp / wcscmp is used to compare those strings.

Returns
Values are -1, 0, or 1.
int CompareIgnoreCase ( const MaxString ) const

Compare this string with another while ignoring the case.

bool operator== ( const MaxString ) const

Equality operator.

Returns
true if the strings are equal; otherwise false.
bool operator!= ( const MaxString ) const

Inequality operator.

Returns
false if the strings are equal; otherwise true.
bool operator< ( const MaxString ) const

Returns true if this string is less than the other; otherwise false.

bool operator<= ( const MaxString ) const

Returns true if this string is less than or equal to the other; otherwise false.

bool operator> ( const MaxString ) const

Returns true if this string is greater than the other; otherwise false.

bool operator>= ( const MaxString ) const

Returns true if this string is greater than or equal to the other; otherwise false.