## CompareInfo::IsSuffix(const String\&, const String\&) const method


Checks if the specified string ends with the specified suffix.

```cpp
virtual bool System::Globalization::CompareInfo::IsSuffix(const String &source, const String &suffix) const
```


| Parameter | Type | Description |
| --- | --- | --- |
| source | const String\& | Source string. |
| suffix | const String\& | Suffix string. |

### ReturnValue

True if string ends with suffix; otherwise false.

## See Also

* Class [String](../../../system/string/)
* Class [CompareInfo](../)
* Namespace [System::Globalization](../../)
* Library [Aspose.PDF for C++](../../../)
## CompareInfo::IsSuffix(const String\&, const String\&, CompareOptions) const method


Checks if the specified string ends with the specified suffix using the specified compare options.

```cpp
virtual bool System::Globalization::CompareInfo::IsSuffix(const String &source, const String &suffix, CompareOptions options) const
```


| Parameter | Type | Description |
| --- | --- | --- |
| source | const String\& | Source string. |
| suffix | const String\& | Suffix string. |
| options | CompareOptions | Compare options. |

### ReturnValue

True if string ends with suffix; otherwise false.

## See Also

* Class [String](../../../system/string/)
* Enum [CompareOptions](../../compareoptions/)
* Class [CompareInfo](../)
* Namespace [System::Globalization](../../)
* Library [Aspose.PDF for C++](../../../)
