Edit

Share via


Ascii.ToUpper Method

Definition

Overloads

ToUpper(ReadOnlySpan<Byte>, Span<Byte>, Int32)

Copies text from a source buffer to a destination buffer, converting ASCII letters to uppercase during the copy.

ToUpper(ReadOnlySpan<Byte>, Span<Char>, Int32)

Copies text from a source buffer to a destination buffer, converting ASCII letters to uppercase during the copy.

ToUpper(ReadOnlySpan<Char>, Span<Byte>, Int32)

Copies text from a source buffer to a destination buffer, converting ASCII letters to uppercase during the copy.

ToUpper(ReadOnlySpan<Char>, Span<Char>, Int32)

Copies text from a source buffer to a destination buffer, converting ASCII letters to uppercase during the copy.

ToUpper(ReadOnlySpan<Byte>, Span<Byte>, Int32)

Source:
Ascii.CaseConversion.cs
Source:
Ascii.CaseConversion.cs

Copies text from a source buffer to a destination buffer, converting ASCII letters to uppercase during the copy.

public:
 static System::Buffers::OperationStatus ToUpper(ReadOnlySpan<System::Byte> source, Span<System::Byte> destination, [Runtime::InteropServices::Out] int % bytesWritten);
public static System.Buffers.OperationStatus ToUpper (ReadOnlySpan<byte> source, Span<byte> destination, out int bytesWritten);
static member ToUpper : ReadOnlySpan<byte> * Span<byte> * int -> System.Buffers.OperationStatus
Public Shared Function ToUpper (source As ReadOnlySpan(Of Byte), destination As Span(Of Byte), ByRef bytesWritten As Integer) As OperationStatus

Parameters

source
ReadOnlySpan<Byte>

The source buffer from which ASCII text is read.

destination
Span<Byte>

The destination buffer to which uppercase text is written.

bytesWritten
Int32

When this method returns, contains the number of bytes actually written to destination. It's the same as the number of bytes actually read from source.

Returns

An OperationStatus describing the result of the operation.

Remarks

In-place conversion is prohibited, please use ToUpperInPlace(Span<Byte>, Int32) for that.

Applies to

ToUpper(ReadOnlySpan<Byte>, Span<Char>, Int32)

Source:
Ascii.CaseConversion.cs
Source:
Ascii.CaseConversion.cs

Copies text from a source buffer to a destination buffer, converting ASCII letters to uppercase during the copy.

public:
 static System::Buffers::OperationStatus ToUpper(ReadOnlySpan<System::Byte> source, Span<char> destination, [Runtime::InteropServices::Out] int % charsWritten);
public static System.Buffers.OperationStatus ToUpper (ReadOnlySpan<byte> source, Span<char> destination, out int charsWritten);
static member ToUpper : ReadOnlySpan<byte> * Span<char> * int -> System.Buffers.OperationStatus
Public Shared Function ToUpper (source As ReadOnlySpan(Of Byte), destination As Span(Of Char), ByRef charsWritten As Integer) As OperationStatus

Parameters

source
ReadOnlySpan<Byte>

The source buffer from which ASCII text is read.

destination
Span<Char>

The destination buffer to which uppercase text is written.

charsWritten
Int32

When this method returns, contains the number of characters actually written to destination. It's the same as the number of bytes actually read from source.

Returns

An OperationStatus describing the result of the operation.

Applies to

ToUpper(ReadOnlySpan<Char>, Span<Byte>, Int32)

Source:
Ascii.CaseConversion.cs
Source:
Ascii.CaseConversion.cs

Copies text from a source buffer to a destination buffer, converting ASCII letters to uppercase during the copy.

public:
 static System::Buffers::OperationStatus ToUpper(ReadOnlySpan<char> source, Span<System::Byte> destination, [Runtime::InteropServices::Out] int % bytesWritten);
public static System.Buffers.OperationStatus ToUpper (ReadOnlySpan<char> source, Span<byte> destination, out int bytesWritten);
static member ToUpper : ReadOnlySpan<char> * Span<byte> * int -> System.Buffers.OperationStatus
Public Shared Function ToUpper (source As ReadOnlySpan(Of Char), destination As Span(Of Byte), ByRef bytesWritten As Integer) As OperationStatus

Parameters

source
ReadOnlySpan<Char>

The source buffer from which ASCII text is read.

destination
Span<Byte>

The destination buffer to which uppercase text is written.

bytesWritten
Int32

When this method returns, contains the number of bytes actually written to destination. It's the same as the number of characters actually read from source.

Returns

An OperationStatus describing the result of the operation.

Applies to

ToUpper(ReadOnlySpan<Char>, Span<Char>, Int32)

Source:
Ascii.CaseConversion.cs
Source:
Ascii.CaseConversion.cs

Copies text from a source buffer to a destination buffer, converting ASCII letters to uppercase during the copy.

public:
 static System::Buffers::OperationStatus ToUpper(ReadOnlySpan<char> source, Span<char> destination, [Runtime::InteropServices::Out] int % charsWritten);
public static System.Buffers.OperationStatus ToUpper (ReadOnlySpan<char> source, Span<char> destination, out int charsWritten);
static member ToUpper : ReadOnlySpan<char> * Span<char> * int -> System.Buffers.OperationStatus
Public Shared Function ToUpper (source As ReadOnlySpan(Of Char), destination As Span(Of Char), ByRef charsWritten As Integer) As OperationStatus

Parameters

source
ReadOnlySpan<Char>

The source buffer from which ASCII text is read.

destination
Span<Char>

The destination buffer to which uppercase text is written.

charsWritten
Int32

When this method returns, contains the number of characters actually written to destination. It's the same as the number of characters actually read from source.

Returns

An OperationStatus describing the result of the operation.

Remarks

In-place conversion is prohibited, please use ToUpperInPlace(Span<Char>, Int32) for that.

Applies to