System::Globalization::CompareInfo::IsSuffix method

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

Checks if the specified string ends with the specified suffix.

virtual bool System::Globalization::CompareInfo::IsSuffix(const String &source, const String &suffix) const
ParameterTypeDescription
sourceconst String&Source string.
suffixconst String&Suffix string.

ReturnValue

True if string ends with suffix; otherwise false.

See Also

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

Checks if the specified string ends with the specified suffix using the specified compare options.

virtual bool System::Globalization::CompareInfo::IsSuffix(const String &source, const String &suffix, CompareOptions options) const
ParameterTypeDescription
sourceconst String&Source string.
suffixconst String&Suffix string.
optionsCompareOptionsCompare options.

ReturnValue

True if string ends with suffix; otherwise false.

See Also