System::String::EndsWith 方法
内容
[
隐藏
]String::EndsWith(const String&) const method
检查字符串是否以指定子串结尾。
bool System::String::EndsWith(const String &value) const
| 参数 | 类型 | 描述 |
|---|---|---|
| 值 | const String& | 查找字符串。 |
ReturnValue
如果字符串以指定子字符串结尾则为 true,否则为 false。
另见
- Class String
- Class String
- Namespace System
- Library Aspose.Font for C++
String::EndsWith(const String&, bool, const SharedPtr<System::Globalization::CultureInfo>&) const method
检查字符串是否以指定子串结尾。
bool System::String::EndsWith(const String &value, bool ignoreCase, const SharedPtr<System::Globalization::CultureInfo> &culture=nullptr) const
| 参数 | 类型 | 描述 |
|---|---|---|
| 值 | const String& | 查找字符串。 |
| ignoreCase | bool | 指定比较是否不区分大小写。 |
| 文化 | const SharedPtr<System::Globalization::CultureInfo>& | 执行字符串比较时使用的文化信息。 |
ReturnValue
如果字符串以指定子字符串结尾则为 true,否则为 false。
另见
- Class String
- Typedef SharedPtr
- Class CultureInfo
- Class String
- Namespace System
- Library Aspose.Font for C++
String::EndsWith(const String&, System::StringComparison) const method
检查字符串是否以指定子串结尾。
bool System::String::EndsWith(const String &value, System::StringComparison comparisonType) const
| 参数 | 类型 | 描述 |
|---|---|---|
| 值 | const String& | 查找字符串。 |
| comparisonType | System::StringComparison | Comparison 模式,详情请参阅 System::StringComparison。 |
ReturnValue
如果字符串以指定子字符串结尾则为 true,否则为 false。
另见
- Class String
- Enum StringComparison
- Class String
- Namespace System
- Library Aspose.Font for C++