StringSegmentEndsWith(ReadOnlySpanChar, StringComparison) Method
Gets whether this
StringSegment instance ends with the specified
value
using the specified
comparison.
Namespace: KGySoft.CoreLibrariesAssembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 9.0.0
public bool EndsWith(
ReadOnlySpan<char> value,
StringComparison comparison = StringComparison.Ordinal
)
Public Function EndsWith (
value As ReadOnlySpan(Of Char),
Optional comparison As StringComparison = StringComparison.Ordinal
) As Boolean
public:
bool EndsWith(
ReadOnlySpan<wchar_t> value,
StringComparison comparison = StringComparison::Ordinal
)
member EndsWith :
value : ReadOnlySpan<char> *
?comparison : StringComparison
(* Defaults:
let _comparison = defaultArg comparison StringComparison.Ordinal
*)
-> bool
- value ReadOnlySpanChar
- The ReadOnlySpan<char> to compare.
- comparison StringComparison (Optional)
- A StringComparison value that specifies how to perform the comparison. This parameter is optional.
Default value: Ordinal.
Boolean if this
StringSegment ends with
value; otherwise,
.