System::Globalization::CompareInfo::Compare method

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
ParameterTypeDescription
string1const String&LHS string.
string2const String&RHS string.

ReturnValue

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

See Also

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
ParameterTypeDescription
aconst String&LHS string.
bconst String&RHS string.
optionsCompareOptionsString comparison type.

ReturnValue

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

See Also

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
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.

ReturnValue

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

See Also

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
ParameterTypeDescription
string1const String&First string.
offset1intStart index of characters in string1.
string2const String&Second string.
offset2intStart index of characters in string2.
optionsCompareOptionsString comparison options.

ReturnValue

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

See Also

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
ParameterTypeDescription
string1const String&First string.
offset1intStart index of characters in string1.
string2const String&Second string.
offset2intStart index of characters in string2.

ReturnValue

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

See Also

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
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.

ReturnValue

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

See Also