Skip to content

ReadOnlySpan<T>.Split() does not share splitting semantics with string.Split() #37746

@bbartels

Description

@bbartels

The parameter-less overload of ReadOnlySpan<T>.Split will use a single white space token ' ' to split on the input buffer. The original string.Split() implementation however splits on any character that returns true when calling char.IsWhiteSpace(char).

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions