MemoryExtensions.EndsWith MemoryExtensions.EndsWith MemoryExtensions.EndsWith MemoryExtensions.EndsWith Method

定義

オーバーロード

EndsWith(ReadOnlySpan<Char>, ReadOnlySpan<Char>, StringComparison) EndsWith(ReadOnlySpan<Char>, ReadOnlySpan<Char>, StringComparison) EndsWith(ReadOnlySpan<Char>, ReadOnlySpan<Char>, StringComparison) EndsWith(ReadOnlySpan<Char>, ReadOnlySpan<Char>, StringComparison)

指定された comparisonType オプションを使って比較した場合に、span の末尾が指定された value と一致するかどうかを判断します。Determines whether the end of the span matches the specified value when compared using the specified comparisonType option.

EndsWith<T>(ReadOnlySpan<T>, ReadOnlySpan<T>) EndsWith<T>(ReadOnlySpan<T>, ReadOnlySpan<T>) EndsWith<T>(ReadOnlySpan<T>, ReadOnlySpan<T>) EndsWith<T>(ReadOnlySpan<T>, ReadOnlySpan<T>)

指定されたシーケンスが読み取り専用スパンの末尾にあるかどうかを判断します。Determines whether the specified sequence appears at the end of a read-only span.

EndsWith<T>(Span<T>, ReadOnlySpan<T>) EndsWith<T>(Span<T>, ReadOnlySpan<T>) EndsWith<T>(Span<T>, ReadOnlySpan<T>) EndsWith<T>(Span<T>, ReadOnlySpan<T>)

指定されたシーケンスがスパンの末尾にあるかどうかを判断します。Determines whether the specified sequence appears at the end of a span.

EndsWith(ReadOnlySpan<Char>, ReadOnlySpan<Char>, StringComparison) EndsWith(ReadOnlySpan<Char>, ReadOnlySpan<Char>, StringComparison) EndsWith(ReadOnlySpan<Char>, ReadOnlySpan<Char>, StringComparison) EndsWith(ReadOnlySpan<Char>, ReadOnlySpan<Char>, StringComparison)

指定された comparisonType オプションを使って比較した場合に、span の末尾が指定された value と一致するかどうかを判断します。Determines whether the end of the span matches the specified value when compared using the specified comparisonType option.

public:
[System::Runtime::CompilerServices::Extension]
 static bool EndsWith(ReadOnlySpan<char> span, ReadOnlySpan<char> value, StringComparison comparisonType);
public static bool EndsWith (this ReadOnlySpan<char> span, ReadOnlySpan<char> value, StringComparison comparisonType);
static member EndsWith : ReadOnlySpan<char> * ReadOnlySpan<char> * StringComparison -> bool
<Extension()>
Public Function EndsWith (span As ReadOnlySpan(Of Char), value As ReadOnlySpan(Of Char), comparisonType As StringComparison) As Boolean

パラメーター

span
ReadOnlySpan<Char>

ソース スパン。The source span.

value
ReadOnlySpan<Char>

ソース スパンの末尾と比較するシーケンス。The sequence to compare to the end of the source span.

comparisonType
StringComparison StringComparison StringComparison StringComparison

spanvalue の比較方法を決定する列挙型の値。An enumeration value that determines how span and value are compared.

戻り値

valuespan の末尾と一致する場合は true、それ以外の場合は falsetrue if value matches the end of span; otherwise, false.

EndsWith<T>(ReadOnlySpan<T>, ReadOnlySpan<T>) EndsWith<T>(ReadOnlySpan<T>, ReadOnlySpan<T>) EndsWith<T>(ReadOnlySpan<T>, ReadOnlySpan<T>) EndsWith<T>(ReadOnlySpan<T>, ReadOnlySpan<T>)

指定されたシーケンスが読み取り専用スパンの末尾にあるかどうかを判断します。Determines whether the specified sequence appears at the end of a read-only span.

public:
generic <typename T>
 where T : IEquatable<T>[System::Runtime::CompilerServices::Extension]
 static bool EndsWith(ReadOnlySpan<T> span, ReadOnlySpan<T> value);
public static bool EndsWith<T> (this ReadOnlySpan<T> span, ReadOnlySpan<T> value) where T : IEquatable<T>;
static member EndsWith : ReadOnlySpan<'T (requires 'T :> IEquatable<'T>)> * ReadOnlySpan<'T (requires 'T :> IEquatable<'T>)> -> bool (requires 'T :> IEquatable<'T>)
<Extension()>
Public Function EndsWith(Of T As IEquatable(Of T)) (span As ReadOnlySpan(Of T), value As ReadOnlySpan(Of T)) As Boolean

型パラメーター

T

スパンの種類。The type of the span.

パラメーター

span
ReadOnlySpan<T> ReadOnlySpan<T> ReadOnlySpan<T> ReadOnlySpan<T>

ソース スパン。The source span.

value
ReadOnlySpan<T> ReadOnlySpan<T> ReadOnlySpan<T> ReadOnlySpan<T>

ソース スパンの末尾と比較するシーケンス。The sequence to compare to the end of the source span.

戻り値

valuespan の末尾と一致する場合は true、それ以外の場合は falsetrue if value matches the end of span; otherwise, false.

EndsWith<T>(Span<T>, ReadOnlySpan<T>) EndsWith<T>(Span<T>, ReadOnlySpan<T>) EndsWith<T>(Span<T>, ReadOnlySpan<T>) EndsWith<T>(Span<T>, ReadOnlySpan<T>)

指定されたシーケンスがスパンの末尾にあるかどうかを判断します。Determines whether the specified sequence appears at the end of a span.

public:
generic <typename T>
 where T : IEquatable<T>[System::Runtime::CompilerServices::Extension]
 static bool EndsWith(Span<T> span, ReadOnlySpan<T> value);
public static bool EndsWith<T> (this Span<T> span, ReadOnlySpan<T> value) where T : IEquatable<T>;
static member EndsWith : Span<'T (requires 'T :> IEquatable<'T>)> * ReadOnlySpan<'T (requires 'T :> IEquatable<'T>)> -> bool (requires 'T :> IEquatable<'T>)
<Extension()>
Public Function EndsWith(Of T As IEquatable(Of T)) (span As Span(Of T), value As ReadOnlySpan(Of T)) As Boolean

型パラメーター

T

スパンの種類。The type of the span.

パラメーター

span
Span<T> Span<T> Span<T> Span<T>

ソース スパン。The source span.

value
ReadOnlySpan<T> ReadOnlySpan<T> ReadOnlySpan<T> ReadOnlySpan<T>

ソース スパンの末尾と比較するシーケンス。The sequence to compare to the end of the source span.

戻り値

valuespan の末尾と一致する場合は true、それ以外の場合は falsetrue if value matches the end of span; otherwise, false.

適用対象