Skip to content

✨ Extension method to convert a string to ReadOnlySpan<Rune> #324

@candoumbe

Description

@candoumbe

Is your feature request related to a problem? Please describe.
string type has implicit conversion to ReadOnlySpan<char> but no implicit conversion to ReadOnlySpan<Rune>.

This could be handy when dealing with text that may content emojis and might be more robust than the naïve char approach

Describe the solution you'd like
A way to convert string or ReadOnlySpan<char> to ReadOnlySpan<Rune>

Describe alternatives you've considered
N/A

Additional context
Some articles that might help getting started :

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions