System::String::Compare methode
String::Compare(const String&, const String&, bool, const SharedPtr<System::Globalization::CultureInfo>&) method
Less-equal-greater vergelijkt twee strings.
static int System::String::Compare(const String &strA, const String &strB, bool ignoreCase, const SharedPtr<System::Globalization::CultureInfo> &ci)
| Parameter | Type | Beschrijving |
|---|---|---|
| strA | const String& | Eerste string om te vergelijken. |
| strB | const String& | Tweede string om te vergelijken. |
| ignoreCase | bool | Specificeert of de vergelijking hoofdletterongevoelig is. |
| ci | const SharedPtr<System::Globalization::CultureInfo>& | Cultuur die gebruikt wordt voor vergelijking. |
ReturnValue
Negatieve waarde als het eerste deelteken minder is dan het tweede, nul als ze overeenkomen, anders een positieve waarde.
Zie ook
- Class String
- Typedef SharedPtr
- Class CultureInfo
- Class String
- Namespace System
- Library Aspose.Page for C++
String::Compare(const String&, const String&, bool) method
Less-equal-greater vergelijkt twee strings.
static int System::String::Compare(const String &strA, const String &strB, bool ignoreCase=false)
| Parameter | Type | Beschrijving |
|---|---|---|
| strA | const String& | Eerste string om te vergelijken. |
| strB | const String& | Tweede string om te vergelijken. |
| ignoreCase | bool | Specificeert of de vergelijking hoofdletterongevoelig is. |
ReturnValue
Negatieve waarde als het eerste deelteken minder is dan het tweede, nul als ze overeenkomen, anders een positieve waarde.
Zie ook
- Class String
- Class String
- Namespace System
- Library Aspose.Page for C++
String::Compare(const String&, const String&, System::StringComparison) method
Less-equal-greater vergelijkt twee strings.
static int System::String::Compare(const String &strA, const String &strB, System::StringComparison comparison_type)
| Parameter | Type | Beschrijving |
|---|---|---|
| strA | const String& | Eerste string om te vergelijken. |
| strB | const String& | Tweede string om te vergelijken. |
| comparison_type | System::StringComparison | Comparison modus. |
ReturnValue
Negatieve waarde als het eerste deelteken minder is dan het tweede, nul als ze overeenkomen, anders een positieve waarde.
Zie ook
- Class String
- Enum StringComparison
- Class String
- Namespace System
- Library Aspose.Page for C++
String::Compare(const String&, int, const String&, int, int, bool, const SharedPtr<System::Globalization::CultureInfo>&) method
Less-equal-greater vergelijkt twee substrings.
static int System::String::Compare(const String &strA, int indexA, const String &strB, int indexB, int length, bool ignoreCase, const SharedPtr<System::Globalization::CultureInfo> &ci)
| Parameter | Type | Beschrijving |
|---|---|---|
| strA | const String& | Eerste string om te vergelijken. |
| indexA | int | Begin van de eerste string-substring. |
| strB | const String& | Tweede string om te vergelijken. |
| indexB | int | Begin van de tweede string-substring. |
| lengte | int | Aantal tekens om te vergelijken. |
| ignoreCase | bool | Specificeert of de vergelijking hoofdletterongevoelig is. |
| ci | const SharedPtr<System::Globalization::CultureInfo>& | Cultuur die gebruikt wordt voor vergelijking. |
ReturnValue
Negatieve waarde als het eerste deelteken minder is dan het tweede, nul als ze overeenkomen, anders een positieve waarde.
Zie ook
- Class String
- Typedef SharedPtr
- Class CultureInfo
- Class String
- Namespace System
- Library Aspose.Page for C++
String::Compare(const String&, int, const String&, int, int, bool) method
Less-equal-greater vergelijkt twee substrings.
static int System::String::Compare(const String &strA, int indexA, const String &strB, int indexB, int length, bool ignoreCase=false)
| Parameter | Type | Beschrijving |
|---|---|---|
| strA | const String& | Eerste string om te vergelijken. |
| indexA | int | Begin van de eerste string-substring. |
| strB | const String& | Tweede string om te vergelijken. |
| indexB | int | Begin van de tweede string-substring. |
| lengte | int | Aantal tekens om te vergelijken. |
| ignoreCase | bool | Specificeert of de vergelijking hoofdletterongevoelig is. |
ReturnValue
Negatieve waarde als het eerste deelteken minder is dan het tweede, nul als ze overeenkomen, anders een positieve waarde.
Zie ook
- Class String
- Class String
- Namespace System
- Library Aspose.Page for C++
String::Compare(const String&, int, const String&, int, int, System::StringComparison) method
Less-equal-greater vergelijkt twee strings.
static int System::String::Compare(const String &strA, int indexA, const String &strB, int indexB, int length, System::StringComparison comparison_type)
| Parameter | Type | Beschrijving |
|---|---|---|
| strA | const String& | Eerste string om te vergelijken. |
| indexA | int | Begin van de eerste string-substring. |
| strB | const String& | Tweede string om te vergelijken. |
| indexB | int | Begin van de tweede string-substring. |
| lengte | int | Aantal tekens om te vergelijken. |
| comparison_type | System::StringComparison | Comparison modus. |
ReturnValue
Negatieve waarde als het eerste deelteken minder is dan het tweede, nul als ze overeenkomen, anders een positieve waarde.
Zie ook
- Class String
- Enum StringComparison
- Class String
- Namespace System
- Library Aspose.Page for C++