Releases: linkdotnet/StringBuilder
Releases · linkdotnet/StringBuilder
v2.2.0
Added
- Added
TrimPrefix(ReadOnlySpan<char>, StringComparison)
(by yours truly (@Joy-less) in #226) - Added
TrimSuffix(ReadOnlySpan<char>, StringComparison)
(also by yours truly (@Joy-less) in #226) - Added
Insert(int, char)
overload (by yours truly (@Joy-less) in #225) - Added
Insert(int, Rune)
overload (again by yours truly (@Joy-less) in #225) - Added
Replace(Rune, Rune)
overload (see yours truly (@Joy-less) in #225) - Improved
Replace(scoped ReadOnlySpan<char>, scoped ReadOnlySpan<char>, int, int)
fallback (achieved by yours truly (@Joy-less) in #225)
v2.1.0
Added
- Added
Replace(Rune, Rune)
overload - Added
Replace(Rune, Rune, int, int)
overload
v2.0.0
This is the v2
release of the ValueStringBuilder. There aren't any noticeable breaking changes. Only old framework versions were removed to make further development easier. The API is the same (with new additions) as in v1
.
Added
- Added
Append(Rune)
overload - Added
AppendJoin(Rune, IEnumerable<string?>)
overload - Added
AppendJoin<T>(Rune, IEnumerable<T>)
overload
Removed
- Support for
net6.0
andnet7.0
was removed.
Changed
- Added
OverloadResolutionPriority
forSpan
overload for the ctor to keep the current behavior. Reported by [@nsentinel])(https://github.com/nsentinel) in #210. - Optimised
AppendLine(scoped ReadOnlySpan<char>)
by avoiding allocating a new string - Removed erroneous null check in
AppendJoin<T>(ReadOnlySpan<char>, IEnumerable<T>)
v1.22.0
Added
AppendSpan
method
v1.21.1
Changed
Append(bool)
is now 33% faster
v1.21.0
Added
PadLeft
andPadRight
methods
v1.20.0
Added
- New ctor that accepts an initial size
v1.19.1
Changed
- Some smaller refactorings
v1.19.0
Test for adding to TypedSpanList
v1.18.6
Changed
Dispose
resets theValueStringBuilder
to the initial state, so it doesn't lead to undefined behavior when used again- Use different approach for
Grow
to be a bit more performant