## String::Contains(char16_t) const method


Checks if string contains given character.

```cpp
bool System::String::Contains(char16_t value) const
```


| Parameter | Type | Description |
| --- | --- | --- |
| value | char16_t | Lookup character. |

### ReturnValue

true if character is present, false otherwise.

## See Also

* Class [String](../)
* Namespace [System](../../)
* Library [Aspose.PDF for C++](../../../)
## String::Contains(const String\&) const method


Checks if str is a substring of current string.

```cpp
bool System::String::Contains(const String &str) const
```


| Parameter | Type | Description |
| --- | --- | --- |
| str | const String\& | Lookup string. |

### ReturnValue

true if substring is present, false otherwise.

## See Also

* Class [String](../)
* Class [String](../)
* Namespace [System](../../)
* Library [Aspose.PDF for C++](../../../)
