Compare()

CompareInfo::Compare(const String&, const String&) const method

Compares strings. Not implemented.

virtual int System::Globalization::CompareInfo::Compare(const String &string1, const String &string2) const

Arguments

ParameterTypeDescription
string1const String&LHS string.
string2const String&RHS string.

Return Value

Negative value if LHS string preceeds RHS one, zero if they match, positive value otherwise.

CompareInfo::Compare(const String&, const String&, CompareOptions) const method

Compares strings. Only Ordinal and OrdinalIgnoreCase modes are supported.

virtual int System::Globalization::CompareInfo::Compare(const String &a, const String &b, CompareOptions options) const

Arguments

ParameterTypeDescription
aconst String&LHS string.
bconst String&RHS string.
optionsCompareOptionsString comparison type.

Return Value

Negative value if LHS string preceeds RHS one, zero if they match, positive value otherwise.

CompareInfo::Compare(const String&, int, int, const String&, int, int) const method

Compares a section of one string with a section of second string. Not implemented.

virtual int System::Globalization::CompareInfo::Compare(const String &string1, int offset1, int length1, const String &string2, int offset2, int length2) const

Arguments

ParameterTypeDescription
string1const String&First string.
offset1intStart index of characters in string1.
length1intNumber of characters in string1 to compare.
string2const String&Second string.
offset2intStart index of characters in string2.
length2intNumber of characters in string2 to compare.

Return Value

Negative value if first string section preceeds second string section, zero if they match, positive value otherwise.

CompareInfo::Compare(const String&, int, const String&, int, CompareOptions) const method

Compares the end section of one string with the end section of second string using string comparison methods. Not implemented.

virtual int System::Globalization::CompareInfo::Compare(const String &string1, int offset1, const String &string2, int offset2, CompareOptions options) const

Arguments

ParameterTypeDescription
string1const String&First string.
offset1intStart index of characters in string1.
string2const String&Second string.
offset2intStart index of characters in string2.
optionsCompareOptionsString comparison options.

Return Value

Negative value if first string section preceeds second string section, zero if they match, positive value otherwise.

CompareInfo::Compare(const String&, int, const String&, int) const method

Compares the end section of one string with the end section of second string. Not implemented.

virtual int System::Globalization::CompareInfo::Compare(const String &string1, int offset1, const String &string2, int offset2) const

Arguments

ParameterTypeDescription
string1const String&First string.
offset1intStart index of characters in string1.
string2const String&Second string.
offset2intStart index of characters in string2.

Return Value

Negative value if first string section preceeds second string section, zero if they match, positive value otherwise.

CompareInfo::Compare(const String&, int, int, const String&, int, int, CompareOptions) const method

Compares a section of one string with a section of second string using string comparison methods. Not implemented.

virtual int System::Globalization::CompareInfo::Compare(const String &string1, int offset1, int length1, const String &string2, int offset2, int length2, CompareOptions options) const

Arguments

ParameterTypeDescription
string1const String&First string.
offset1intStart index of characters in string1.
length1intNumber of characters in string1 to compare.
string2const String&Second string.
offset2intStart index of characters in string2.
length2intNumber of characters in string2 to compare.
optionsCompareOptionsString comparison options.

Return Value

Negative value if first string section preceeds second string section, zero if they match, positive value otherwise.

See Also