3ds Max C++ API Reference
Loading...
Searching...
No Matches
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.

Detailed Description

Function Documentation

◆ Compare()

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.

◆ CompareIgnoreCase()

int CompareIgnoreCase ( const MaxString & ) const

Compare this string with another while ignoring the case.

◆ operator==()

bool operator== ( const MaxString & ) const

Equality operator.

Returns
true if the strings are equal; otherwise false.

◆ operator!=()

bool operator!= ( const MaxString & ) const

Inequality operator.

Returns
false if the strings are equal; otherwise true.

◆ operator<()

bool operator< ( const MaxString & ) const

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

◆ operator<=()

bool operator<= ( const MaxString & ) const

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

◆ operator>()

bool operator> ( const MaxString & ) const

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

◆ operator>=()

bool operator>= ( const MaxString & ) const

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