public static NullableReadOnlySpan<char> StripSuffix(
this ReadOnlySpan<char> span,
ReadOnlySpan<char> suffix,
CultureInfo culture,
CompareOptions options = CompareOptions.None
)
<ExtensionAttribute>
Public Shared Function StripSuffix (
span As ReadOnlySpan(Of Char),
suffix As ReadOnlySpan(Of Char),
culture As CultureInfo,
Optional options As CompareOptions = CompareOptions.None
) As NullableReadOnlySpan(Of Char)
Dim span As ReadOnlySpan(Of Char)
Dim suffix As ReadOnlySpan(Of Char)
Dim culture As CultureInfo
Dim options As CompareOptions
Dim returnValue As NullableReadOnlySpan(Of Char)
returnValue = span.StripSuffix(suffix,
culture, options)
public:
[ExtensionAttribute]
static NullableReadOnlySpan<wchar_t> StripSuffix(
ReadOnlySpan<wchar_t> span,
ReadOnlySpan<wchar_t> suffix,
CultureInfo^ culture,
CompareOptions options = CompareOptions::None
)
When using the .Net Standard 2.0 or 2.1 version of this library, this method may allocate strings to perform the comparison. This is because the CompareInfo class does not provide string comparison methods for use with ReadOnlySpanT.