## CompareInfo::IsSuffix(const String\&, const String\&) const method


检查指定字符串是否以指定后缀结尾。

```cpp
virtual bool System::Globalization::CompareInfo::IsSuffix(const String &source, const String &suffix) const
```


| 参数 | 类型 | 描述 |
| --- | --- | --- |
| 源 | const String\& | 源字符串。 |
| 后缀 | const String\& | 后缀字符串。 |

### ReturnValue

如果字符串以后缀结尾则为 true；否则为 false。

## 另见

* Class [String](../../../system/string/)
* Class [CompareInfo](../)
* Namespace [System::Globalization](../../)
* Library [Aspose.Font for C++](../../../)
## CompareInfo::IsSuffix(const String\&, const String\&, CompareOptions) const method


检查指定字符串是否以指定后缀结尾，使用指定的比较选项。

```cpp
virtual bool System::Globalization::CompareInfo::IsSuffix(const String &source, const String &suffix, CompareOptions options) const
```


| 参数 | 类型 | 描述 |
| --- | --- | --- |
| 源 | const String\& | 源字符串。 |
| 后缀 | const String\& | 后缀字符串。 |
| 选项 | CompareOptions | 比较选项。 |

### ReturnValue

如果字符串以后缀结尾则为 true；否则为 false。

## 另见

* Class [String](../../../system/string/)
* Enum [CompareOptions](../../compareoptions/)
* Class [CompareInfo](../)
* Namespace [System::Globalization](../../)
* Library [Aspose.Font for C++](../../../)
