ReadOnlySpanPolyfillExtensionEnumerateLines(ReadOnlySpan`1Char) Method
Returns an enumeration of lines over the provided span.
Namespace: FolkerKinzel.StringsAssembly: FolkerKinzel.Strings (in FolkerKinzel.Strings.dll) Version: 9.4.0+10a7d4d71aa960998e32ac0ac6c4fcbe4164c917
public static SpanLineEnumeratorPolyfill EnumerateLines(
this ReadOnlySpan<char> span
)
<ExtensionAttribute>
Public Shared Function EnumerateLines (
span As ReadOnlySpan(Of Char)
) As SpanLineEnumeratorPolyfill
public:
[ExtensionAttribute]
static SpanLineEnumeratorPolyfill EnumerateLines(
ReadOnlySpan<wchar_t> span
)
[<ExtensionAttribute>]
static member EnumerateLines :
span : ReadOnlySpan<char> -> SpanLineEnumeratorPolyfill
- span ReadOnlySpanChar
- A span containing the lines to enumerate.
SpanLineEnumeratorPolyfillAn enumeration of lines.In Visual Basic and C#, you can call this method as an instance method on any object of type
ReadOnlySpanChar. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
The list of recognized newline sequences is:
-
CR (U+000D)
-
LF (U+000A)
-
CRLF (U+000D U+000A)
-
NEL (U+0085)
-
LS (U+2028)
-
FF (U+000C)
-
PS (U+2029)
This list is specified by the Unicode standard (Sec. 5.8, Recommendation R4 and Table
5-2).