Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

StringSegment wishlist #213

Closed
9 of 10 tasks
Tratcher opened this issue Apr 3, 2017 · 0 comments
Closed
9 of 10 tasks

StringSegment wishlist #213

Tratcher opened this issue Apr 3, 2017 · 0 comments
Assignees

Comments

@Tratcher
Copy link
Member

Tratcher commented Apr 3, 2017

I tried to use StringSegment to parse headers and found that half of the string methods I was using are not available.

  • Implicit converter from string (but not to string)
  • .Empty, .None (null)
  • Indexer
  • .Subsegment(int offset) - right now it only has Subsegment(int offset, int length)
  • .IsNullOrEmpty(StringSegment value)
  • StringSegment.Equals(string, StringSegment, StringComparison)
  • .Split(char[])
  • StringBuilder.Append(StringSegment) & InlineStringBuilder.Append(StringSegment)
  • .GetHashCode(StringComparer.OrdinalIgnoreCase)
  • .GetHashCode() (that doesn't substring)

More to come...

@Tratcher Tratcher self-assigned this May 15, 2017
Tratcher added a commit that referenced this issue May 19, 2017
Tratcher added a commit that referenced this issue May 22, 2017
Add StringSegmentComparer
Add StringSegment.LastIndexOf(char)
Add StringSegment.Split
@Tratcher Tratcher added this to the 2.0.0-preview2 milestone May 22, 2017
@ghost ghost locked as resolved and limited conversation to collaborators Dec 2, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant