[fpc-pascal] Real length of WideString
Graeme Geldenhuys
graemeg.lists at gmail.com
Thu Oct 21 08:29:00 CEST 2010
Op 2010-10-21 08:17, Felipe Monteiro de Carvalho het geskryf:
> On Thu, Oct 21, 2010 at 1:41 AM, Zaher Dirkey <parmaja at gmail.com> 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() returns number of bytes, not number of characters. The incorrect
assumption was made back in Delphi (before unicode support).
Regards,
- Graeme -
--
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://opensoft.homeip.net:8080/fpgui/
More information about the fpc-pascal
mailing list