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
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
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()
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
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