System::Globalization::CompareInfo::IsSuffix 方法

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

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

virtual bool System::Globalization::CompareInfo::IsSuffix(const String &source, const String &suffix) const
ParameterType描述
sourceconst String&源字符串。
后缀const String&后缀字符串。

ReturnValue

如果字符串以后缀结尾,则为 True;否则为 false。

另见

CompareInfo::IsSuffix(const String&, const String&, CompareOptions) const method

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

virtual bool System::Globalization::CompareInfo::IsSuffix(const String &source, const String &suffix, CompareOptions options) const
ParameterType描述
sourceconst String&源字符串。
后缀const String&后缀字符串。
选项CompareOptions比较选项。

ReturnValue

如果字符串以后缀结尾,则为 True;否则为 false。

另见