Open
Description
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?