## String::EndsWith(const String\&) const method


Checks if string ends with specified substring.

```cpp
bool System::String::EndsWith(const String &value) const
```


| Parameter | Type | Description |
| --- | --- | --- |
| value | const String\& | Lookup string. |

### ReturnValue

true if string ends with specified substring, false otherwise.

## See Also

* Class [String](../)
* Class [String](../)
* Namespace [System](../../)
* Library [Aspose.Font for C++](../../../)
## String::EndsWith(const String\&, bool, const SharedPtr\<System::Globalization::CultureInfo\>\&) const method


Checks if string ends with specified substring.

```cpp
bool System::String::EndsWith(const String &value, bool ignoreCase, const SharedPtr<System::Globalization::CultureInfo> &culture=nullptr) const
```


| Parameter | Type | Description |
| --- | --- | --- |
| value | const String\& | Lookup string. |
| ignoreCase | bool | Specifies whether comparison is case-insensitive. |
| culture | const SharedPtr\<System::Globalization::CultureInfo\>\& | Culture to use while performing string comparison. |

### ReturnValue

true if string ends with specified substring, false otherwise.

## See Also

* Class [String](../)
* Typedef [SharedPtr](../../sharedptr/)
* Class [CultureInfo](../../../system.globalization/cultureinfo/)
* Class [String](../)
* Namespace [System](../../)
* Library [Aspose.Font for C++](../../../)
## String::EndsWith(const String\&, System::StringComparison) const method


Checks if string ends with specified substring.

```cpp
bool System::String::EndsWith(const String &value, System::StringComparison comparisonType) const
```


| Parameter | Type | Description |
| --- | --- | --- |
| value | const String\& | Lookup string. |
| comparisonType | System::StringComparison | [Comparison](../../comparison/) mode, see [System::StringComparison](../../stringcomparison/) for details. |

### ReturnValue

true if string ends with specified substring, false otherwise.

## See Also

* Class [String](../)
* Enum [StringComparison](../../stringcomparison/)
* Class [String](../)
* Namespace [System](../../)
* Library [Aspose.Font for C++](../../../)
