Skip to content

Releases: linkdotnet/StringBuilder

v3.4.2

Choose a tag to compare

@linkdotnet linkdotnet released this 04 Jul 13:02
eaf202c

Fixed

  • Resolved CS0121 overload ambiguity when passing a no-hole interpolated string (e.g. Append($"text")) to Append/AppendLine on C# 13 and earlier, by adding Append(string?) and AppendLine(string?) overloads. Reported by @SMAH1 in #283

v3.4.1

Choose a tag to compare

@linkdotnet linkdotnet released this 19 Feb 08:33
06d8825

Fixed

  • Use correct culture (CurrentCulture) when no FormatProvider is provided in Append and Insert methods.

v3.4.0

Choose a tag to compare

@linkdotnet linkdotnet released this 18 Feb 10:47
f168ee5

Added

  • Append and Insert can have FormatProvider. Reported by @SMAH1 in #276

v3.3.0

Choose a tag to compare

@linkdotnet linkdotnet released this 19 Jan 11:34
ebc1973

Added

  • Added AppendInterpolatedStringHandler to support zero-allocation string interpolation in Append and AppendLine methods.

v3.2.0

Choose a tag to compare

@linkdotnet linkdotnet released this 31 Oct 20:21
f1a4f05

Changed

  • Renamed PadLeft(ReadOnlySpan<char>, int, char) and PadRight(ReadOnlySpan<char>, int, char) to AppendPadLeft(ReadOnlySpan<char>, int, char) and AppendPadRight(ReadOnlySpan<char>, int, char) respectively.

v3.1.0

Choose a tag to compare

@linkdotnet linkdotnet released this 31 Oct 15:46
1ae92d9

Added

  • Added PadLeft(ReadOnlySpan<char>, int, char) and PadRight(ReadOnlySpan<char>, int, char) methods to append padded strings without allocating additional memory (by @SMAH1 in #260)

v3.0.0

Choose a tag to compare

@linkdotnet linkdotnet released this 30 Oct 06:56
695b6c5

This is the v3 major release. The API is almost the same as in v2 - there is only a slight change in the Concat static helper method to reflect a less-boxed API.

Added

  • .NET 10.0 support
  • IndexOf, LastIndexOf, and Contains methods now support StringComparison

Changed

  • ValueStringBuilder.Concat uses params ReadOnlySpan<T> to reduce boxing and improve performance.

v2.4.1

Choose a tag to compare

@linkdotnet linkdotnet released this 25 Mar 06:51
fa0b4b7

Changed

  • Optimized Replace(char, char) (by @Joy-less in #241)
  • Optimized Replace(ReadOnlySpan<char>, ReadOnlySpan<char>) when both spans are length 1 (by @Joy-less in #241)

v2.4.0

Choose a tag to compare

@linkdotnet linkdotnet released this 21 Feb 22:02
e9b83c2

Added

Changed

Fixed

  • Fixed IndexOf and LastIndexOf allowing out-of-bounds index when the string to find is empty (by @Joy-less in #238)

v2.3.1

Choose a tag to compare

@linkdotnet linkdotnet released this 20 Feb 19:08
59151cc

Changed

  • Optimized when the internal buffer should grow. Fixed by @Aniobodo.