When and Why Should I Use TStringBuilder?

前端 未结 6 1543
你的背包
你的背包 2020-12-31 05:51

I converted my program from Delphi 4 to Delphi 2009 a year ago, mainly to make the jump to Unicode, but also to gain the benefits of all those years of Delphi improvements.<

6条回答
  •  无人及你
    2020-12-31 06:41

    TStringBuilder is basically just a me-too feature, like LachlanG said. It's needed in .NET because CLR strings are immutable, but Delphi doesn't have that problem so it doesn't really require a string builder as a workaround.

提交回复
热议问题