Releases: linkdotnet/StringBuilder
Releases · linkdotnet/StringBuilder
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
v1.18.5
Changed
- Fixed a bug, where in
Append
overflows the internal buffer and throws an exception - Use better struct layout to be more cache friendly
v1.18.4
Changed
- Optimized
Append(scoped ReadOnlySpan<char>)
to be roughly 5% faster - Optimized
AppendLine
to have less overhead