Bewerken

Share via


MemoryExtensions.EnumerateLines Method

Definition

Overloads

EnumerateLines(ReadOnlySpan<Char>)

Returns an enumeration of lines over the provided span.

EnumerateLines(Span<Char>)

Returns an enumeration of lines over the provided span.

EnumerateLines(ReadOnlySpan<Char>)

Source:
MemoryExtensions.Globalization.cs
Source:
MemoryExtensions.Globalization.cs
Source:
MemoryExtensions.Globalization.cs

Returns an enumeration of lines over the provided span.

public:
[System::Runtime::CompilerServices::Extension]
 static System::Text::SpanLineEnumerator EnumerateLines(ReadOnlySpan<char> span);
public static System.Text.SpanLineEnumerator EnumerateLines (this ReadOnlySpan<char> span);
static member EnumerateLines : ReadOnlySpan<char> -> System.Text.SpanLineEnumerator
<Extension()>
Public Function EnumerateLines (span As ReadOnlySpan(Of Char)) As SpanLineEnumerator

Parameters

span
ReadOnlySpan<Char>

A span containing the lines to enumerate.

Returns

An enumeration of lines.

Remarks

It is recommended that protocol parsers not utilize this API. See the documentation for ReplaceLineEndings() for more information on how newline sequences are detected.

Applies to

EnumerateLines(Span<Char>)

Source:
MemoryExtensions.Globalization.cs
Source:
MemoryExtensions.Globalization.cs
Source:
MemoryExtensions.Globalization.cs

Returns an enumeration of lines over the provided span.

public:
[System::Runtime::CompilerServices::Extension]
 static System::Text::SpanLineEnumerator EnumerateLines(Span<char> span);
public static System.Text.SpanLineEnumerator EnumerateLines (this Span<char> span);
static member EnumerateLines : Span<char> -> System.Text.SpanLineEnumerator
<Extension()>
Public Function EnumerateLines (span As Span(Of Char)) As SpanLineEnumerator

Parameters

span
Span<Char>

A span containing the lines to enumerate.

Returns

An enumeration of lines.

Remarks

It is recommended that protocol parsers not utilize this API. See the documentation for ReplaceLineEndings() for more information on how newline sequences are detected.

Applies to