System::Globalization::CompareInfo::Compare method
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
Parameter | Type | Description |
---|---|---|
a | const String& | LHS string. |
b | const String& | RHS string. |
options | CompareOptions | String comparison type. |
ReturnValue
Negative value if LHS string preceeds RHS one, zero if they match, positive value otherwise.
See Also
- Class String
- Enum CompareOptions
- Class CompareInfo
- Namespace System::Globalization
- Library Aspose.PUB for C++
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
Parameter | Type | Description |
---|---|---|
string1 | const String& | LHS string. |
string2 | const String& | RHS string. |
ReturnValue
Negative value if LHS string preceeds RHS one, zero if they match, positive value otherwise.
See Also
- Class String
- Class CompareInfo
- Namespace System::Globalization
- Library Aspose.PUB for C++
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
Parameter | Type | Description |
---|---|---|
string1 | const String& | First string. |
offset1 | int | Start index of characters in string1. |
string2 | const String& | Second string. |
offset2 | int | Start 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
- Class String
- Class CompareInfo
- Namespace System::Globalization
- Library Aspose.PUB for C++
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
Parameter | Type | Description |
---|---|---|
string1 | const String& | First string. |
offset1 | int | Start index of characters in string1. |
string2 | const String& | Second string. |
offset2 | int | Start index of characters in string2. |
options | CompareOptions | String comparison options. |
ReturnValue
Negative value if first string section preceeds second string section, zero if they match, positive value otherwise.
See Also
- Class String
- Enum CompareOptions
- Class CompareInfo
- Namespace System::Globalization
- Library Aspose.PUB for C++
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
Parameter | Type | Description |
---|---|---|
string1 | const String& | First string. |
offset1 | int | Start index of characters in string1. |
length1 | int | Number of characters in string1 to compare. |
string2 | const String& | Second string. |
offset2 | int | Start index of characters in string2. |
length2 | int | Number 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
- Class String
- Class CompareInfo
- Namespace System::Globalization
- Library Aspose.PUB for C++
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
Parameter | Type | Description |
---|---|---|
string1 | const String& | First string. |
offset1 | int | Start index of characters in string1. |
length1 | int | Number of characters in string1 to compare. |
string2 | const String& | Second string. |
offset2 | int | Start index of characters in string2. |
length2 | int | Number of characters in string2 to compare. |
options | CompareOptions | String comparison options. |
ReturnValue
Negative value if first string section preceeds second string section, zero if they match, positive value otherwise.
See Also
- Class String
- Enum CompareOptions
- Class CompareInfo
- Namespace System::Globalization
- Library Aspose.PUB for C++