Table of Contents

Method ToUpperInvariant

Namespace
Zyl.ExSpans
Assembly
ExSpans.dll

ToUpperInvariant(ReadOnlyExSpan<char>, ExSpan<char>)

Copies the characters from the source span into the destination, converting each character to uppercase using the casing rules of the invariant culture.

public static nint ToUpperInvariant(this ReadOnlyExSpan<char> source, ExSpan<char> destination)

Parameters

source ReadOnlyExSpan<char>

The source span.

destination ExSpan<char>

The destination span which contains the transformed characters.

Returns

nint

The number of characters written into the destination span. If the destination is too small, returns -1.

Exceptions

InvalidOperationException

The source and destination buffers overlap.

ExSpanTooLongException

Throws an exception if the length is out of the range of Int32.