Skip to content

Feature: Parse a single line #4

Open
@fubar-coder

Description

@fubar-coder

Description

It would be nice if I'd be able to parse a single line. The function signature might look like:

// without options
YourType ParseData(ReadOnlySpan<char> line);

// with options
YourType ParseData(ReadOnlySpan<char> line, Options<char> option);

// without options, but bytes instead of char
YourType ParseData(ReadOnlySpan<byte> line);

// with options, but bytes instead of char
YourType ParseData(ReadOnlySpan<byte> line, Options<char> option);

Reason

  • Parallelization of line parsing
  • Avoid allocation of List or similar

Other

Maybe support for lines without newline characters could be limited to single line parsing?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestup for grapsfeel free to make a pull request ;)

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions