Re: [Lazarus] String vs WideString

2017-08-18 Thread Ondrej Pokorny via Lazarus
On 16.08.2017 22:40, Sven Barth via Lazarus wrote: Trunk supports Insert() and Delete() on dynamic arrays, Concat() and + are on the near term ToDo list. I eagerly wait for these (and for anonymous methods) :) Ondrej -- ___ Lazarus mailing list Lazar

Re: [Lazarus] String vs WideString

2017-08-18 Thread Michael Schnell via Lazarus
On 18.08.2017 14:26, Sven Barth via Lazarus wrote: Delete(), Insert() and Pos() I understand those, and "+", etc, are in the pipe for Array of Byte, as well. I suppose workalikes for the most important TStrings siblings, such as TStringlist (including sort and LoadFromFile) be doable on to

Re: [Lazarus] String vs WideString

2017-08-18 Thread Sven Barth via Lazarus
Am 18.08.2017 10:42 schrieb "Michael Schnell via Lazarus" < lazarus@lists.lazarus-ide.org>: > > On 17.08.2017 11:27, Sven Barth via Lazarus wrote: >> >> >> Why do you want to stuff everything and the kitchen sink into TStrings? >> > To make use of the benefits the string type offers such as referen

Re: [Lazarus] String vs WideString

2017-08-18 Thread Martin Schreiber via Lazarus
On Friday 18 August 2017 13:02:44 Michael Schnell via Lazarus wrote: > On 18.08.2017 11:01, Graeme Geldenhuys via Lazarus wrote: > > On 2017-08-18 09:16, Tony Whyman via Lazarus wrote: > >> Damn, should remember never to copy and paste from Wikipedia! > > > > Or simply use "plain text" emails > > T

Re: [Lazarus] String vs WideString

2017-08-18 Thread Graeme Geldenhuys via Lazarus
On 2017-08-18 12:02, Michael Schnell wrote: To explain my mail above in plain Text: Nice. :-) And clever email clients will even "format" the plain text emails - looking much better than your original HTML version. See attached screenshot of how your last email looked like here. Regards,

Re: [Lazarus] String vs WideString

2017-08-18 Thread Michael Schnell via Lazarus
On 18.08.2017 11:01, Graeme Geldenhuys via Lazarus wrote: On 2017-08-18 09:16, Tony Whyman via Lazarus wrote: Damn, should remember never to copy and paste from Wikipedia! Or simply use "plain text" emails To explain my mail above in plain Text: A 32 bit Unicode needs two UTC-16 codes when

Re: [Lazarus] dynamic string proposal

2017-08-18 Thread Juha Manninen via Lazarus
I answer here Tony's post in "String vs WideString" thread. On Thu, Aug 17, 2017 at 2:09 PM, Tony Whyman via Lazarus wrote: > Are you making my points for me? If such a basic term as "character" means 7 > different things then something is badly amiss. It should be fairly obvious > that in this

Re: [Lazarus] String vs WideString

2017-08-18 Thread Graeme Geldenhuys via Lazarus
On 2017-08-18 09:16, Tony Whyman via Lazarus wrote: Damn, should remember never to copy and paste from Wikipedia! Or simply use "plain text" emails to this mailing list. It reduces size considerably, and is still perfectly readable (like it has been for the last 30 years in email communicatio

Re: [Lazarus] String vs WideString

2017-08-18 Thread Michael Schnell via Lazarus
On 17.08.2017 11:27, Sven Barth via Lazarus wrote: Why do you want to stuff everything and the kitchen sink into TStrings? To make use of the benefits the string type offers such as reference counting and lazy copy. -Michael -- ___ Lazarus mailing

Re: [Lazarus] String vs WideString

2017-08-18 Thread Tony Whyman via Lazarus
Damn, should remember never to copy and paste from Wikipedia! On 17/08/17 13:40, Michael Schnell via Lazarus wrote: On 17.08.2017 12:41, Tony Whyman via Lazarus wrote: Finally: "In UTF-16, code points greater or equal to 2^16 are encoded using /two/ 16-bit code units. 2¹⁵ ??? -Michael -