System::String::CompareOrdinal 方法
String::CompareOrdinal(const String&, const String&) method
Less-equal-greater-compares 两个字符串,使用序数模式。
static int System::String::CompareOrdinal(const String &strA, const String &strB)
| 参数 | 类型 | 描述 |
|---|---|---|
| strA | const String& | 要比较的第一个字符串。 |
| strB | const String& | 要比较的第二个字符串。 |
ReturnValue
如果第一个子串小于第二个子串则返回负值,匹配时返回零,否则返回正值。
另见
- Class String
- Class String
- Namespace System
- Library Aspose.Font for C++
String::CompareOrdinal(const String&, int, const String&, int, int) method
Less-equal-greater-compares 两个字符串,使用序数模式。
static int System::String::CompareOrdinal(const String &strA, int indexA, const String &strB, int indexB, int length)
| 参数 | 类型 | 描述 |
|---|---|---|
| strA | const String& | 要比较的第一个字符串。 |
| indexA | int | 第一个字符串子串的起始位置。 |
| strB | const String& | 要比较的第二个字符串。 |
| indexB | int | 第二个字符串子串的起始位置。 |
| 长度 | int | 要比较的字符数。 |
ReturnValue
如果第一个子串小于第二个子串则返回负值,匹配时返回零,否则返回正值。
另见
- Class String
- Class String
- Namespace System
- Library Aspose.Font for C++