System::String::Contains 方法
String::Contains(char16_t) const method
检查字符串是否包含给定字符。
bool System::String::Contains(char16_t value) const
| 参数 | 类型 | 描述 |
|---|---|---|
| 值 | char16_t | 查找字符。 |
ReturnValue
如果字符存在则为 true,否则为 false。
另见
- Class String
- Namespace System
- Library Aspose.Font for C++
String::Contains(const String&) const method
检查 str 是否是当前字符串的子串。
bool System::String::Contains(const String &str) const
| 参数 | 类型 | 描述 |
|---|---|---|
| str | const String& | 查找字符串。 |
ReturnValue
如果子字符串存在则为 true,否则为 false。
另见
- Class String
- Class String
- Namespace System
- Library Aspose.Font for C++