Comparison Operators and methods
 
 
 
Comparison Operators and methods

Functions

int  Compare (const MaxString &) const
  Check if the strings are equal.
int  CompareIgnoreCase (const MaxString &) const
  Compare this string with another while ignoring the case.
bool  operator== (const MaxString &) const
  Equality operator.
bool  operator!= (const MaxString &) const
  Inequality operator.
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.

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.