Andrzej 0 Posted May 17, 2022 What is best way to do following: I need of list of Unicode strings for my Json5 parser. In new Delphi from 2009 i can use Tstringlist and load ,save to stream automatic convert between utf8 and utf16le. For old Delphi I must create WideStringList and convert between utf8 and utf16. Next I must conditionally define JsonStringList as Tstringlist and TwideStringList? Share this post Link to post
Andrzej 0 Posted May 17, 2022 I think, no need stringlist, rather parsing strings, parse widestring,utf8string,unicode and utf8 files. Share this post Link to post
Fr0sT.Brutal 900 Posted May 17, 2022 Be aware that WideString is OS-controlled so is much slower in creation/disposal. Share this post Link to post
Andrzej 0 Posted May 17, 2022 Old Delphi probably dont have stringbuilder and operations like stringlify would be slow.. Share this post Link to post
Fr0sT.Brutal 900 Posted May 17, 2022 (edited) FastMM to the rescue Edited May 17, 2022 by Fr0sT.Brutal Share this post Link to post