Re: [fpc-pascal] Real length of WideString

2010-10-21 Thread Marco van de Voort
In our previous episode, Graeme Geldenhuys said: > > Length() returns number of bytes, not number of characters. The incorrect > assumption was made back in Delphi (before unicode support). Afaik before unicode. Delphi 3 (which introduced widestrings) was released August 5th, 1997. Unicode 3.0

Re: [fpc-pascal] Real length of WideString

2010-10-20 Thread Graeme Geldenhuys
Op 2010-10-21 08:29, Graeme Geldenhuys het geskryf: > > Length() returns number of bytes, not number of characters. The incorrect > assumption was made back in Delphi (before unicode support). >From Delphi 7 & Kylix 3 help: "For single-byte and multibyte strings, Length returns the number of byt

Re: [fpc-pascal] Real length of WideString

2010-10-20 Thread Graeme Geldenhuys
Op 2010-10-21 08:17, Felipe Monteiro de Carvalho het geskryf: > On Thu, Oct 21, 2010 at 1:41 AM, Zaher Dirkey wrote: >> How to get the real length of WideString variable. > > Length in which unit? WideChars (2 bytes each) or Bytes? > > Length() returns the amount of WideChars AFAIK > Length()

Re: [fpc-pascal] Real length of WideString

2010-10-20 Thread Felipe Monteiro de Carvalho
On Thu, Oct 21, 2010 at 1:41 AM, Zaher Dirkey wrote: > How to get the real length of WideString variable. Length in which unit? WideChars (2 bytes each) or Bytes? Length() returns the amount of WideChars AFAIK -- Felipe Monteiro de Carvalho ___ fpc-p

[fpc-pascal] Real length of WideString

2010-10-20 Thread Zaher Dirkey
How to get the real length of WideString variable. Thanks in advance. -- Zaher Dirkey ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal