Ascii.TrimEnd Method

Definition

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

Overloads

TrimEnd(ReadOnlySpan<Byte>)

Trims all trailing ASCII whitespaces from the buffer.

TrimEnd(ReadOnlySpan<Char>)

Trims all trailing ASCII whitespaces from the buffer.

TrimEnd(ReadOnlySpan<Byte>)

Source:
Ascii.Trimming.cs
Source:
Ascii.Trimming.cs

Trims all trailing ASCII whitespaces from the buffer.

C#
public static Range TrimEnd(ReadOnlySpan<byte> value);

Parameters

value
ReadOnlySpan<Byte>

The ASCII buffer.

Returns

The range of the untrimmed data.

Applies to

.NET 10 and other versions
Product Versions
.NET 8, 9, 10

TrimEnd(ReadOnlySpan<Char>)

Source:
Ascii.Trimming.cs
Source:
Ascii.Trimming.cs

Trims all trailing ASCII whitespaces from the buffer.

C#
public static Range TrimEnd(ReadOnlySpan<char> value);

Parameters

value
ReadOnlySpan<Char>

The ASCII buffer.

Returns

The range of the untrimmed data.

Applies to

.NET 10 and other versions
Product Versions
.NET 8, 9, 10