EndsWith()

String::EndsWith(const String&) const method

Checks if string ends with specified substring.

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

Arguments

ParameterTypeDescription
valueconst String&Lookup string.

Return Value

true if string ends with specified substring, false otherwise.

String::EndsWith(const String&, System::StringComparison) const method

Checks if string ends with specified substring.

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

Arguments

ParameterTypeDescription
valueconst String&Lookup string.
comparisonTypeSystem::StringComparisonComparison mode, see System::StringComparison for details.

Return Value

true if string ends with specified substring, false otherwise.

String::EndsWith(const String&, bool, const SharedPtr<System::Globalization::CultureInfo>&) const method

Checks if string ends with specified substring.

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

Arguments

ParameterTypeDescription
valueconst String&Lookup string.
ignoreCaseboolSpecifies whether comparison is case-insensitive.
cultureconst SharedPtr<System::Globalization::CultureInfo>&Culture to use while performing string comparison.

Return Value

true if string ends with specified substring, false otherwise.

See Also