On Tue, Nov 11, 2008 at 10:27 AM, Michael Schnell <[EMAIL PROTECTED]> wrote: > needs to do something other than just "length()" to find out the count of > characters in a string.
>From memory, the Delphi and FPC documentation says that Length() returns the number of bytes, NOT the number of characters.... As for the rest of you comments, I agree. Object Pascal is a beautiful language because it does type handling for you - like your example of '+' for Integer or String types. In the same way I would hope that FPC can handle the String type seamlessly for UTF-16 or UTF-8 - whichever encoding the FPC developers decide String type should be. Regards, - Graeme - _______________________________________________ fpGUI - a cross-platform Free Pascal GUI toolkit http://opensoft.homeip.net/fpgui/ _______________________________________________ fpc-devel maillist - [email protected] http://lists.freepascal.org/mailman/listinfo/fpc-devel
