Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 

A ReadOnly StringSlice or string_view in C#.

because System.String.Substring will allocate new spaces and copy the chars, so StringView won't do this.

StringView only contains String's reference and the slice's begin and length property,

and many algorithm based on these three property.

there is not one complete benchmark between String and StringView, i will finish this in few days.

StringView supply:

  • IndexOf
  • IndexOfAny
  • LastIndexOf
  • LastIndexOfAny
  • Contains
  • StartsWith
  • EndsWith
  • Substring
  • Split
  • Concat
  • Join

About

No description, website, or topics provided.

Resources

License

Releases

No releases published

Packages

No packages published

Languages