MemoryExtensions.ToUpperInvariant メソッド

定義

ソース スパンからデスティネーションに文字をコピーし、インバリアント カルチャの大文字と小文字の規則を使用して各文字を大文字に変換します。

public:
[System::Runtime::CompilerServices::Extension]
 static int ToUpperInvariant(ReadOnlySpan<char> source, Span<char> destination);
public static int ToUpperInvariant (this ReadOnlySpan<char> source, Span<char> destination);
static member ToUpperInvariant : ReadOnlySpan<char> * Span<char> -> int
<Extension()>
Public Function ToUpperInvariant (source As ReadOnlySpan(Of Char), destination As Span(Of Char)) As Integer

パラメーター

source
ReadOnlySpan<Char>

ソース スパン。

destination
Span<Char>

変換された文字を格納しているデスティネーション スパン。

戻り値

Int32

デスティネーション スパンに書き込まれた文字数。 コピー先が小さすぎる場合は、-1 を返します。

例外

コピー元とコピー先のバッファーが重なり合います。

適用対象