Graeme Geldenhuys schreef: > You mean like the UTF8Length() function in LCLProc unit? >
He mean that, but that is not independently from its binary representation: it assume UTF8 binary representation. OTOH, I don't think you can make a function Length without telling it (implicitly or explicitly by using a parameter) the used encoding. > > On 19/06/2008, Андрей Гусев <[EMAIL PROTECTED]> wrote: >> Because Length() returns bytes count. >> Have lazarus conventional function to calculate chars count in string, >> that do it independently from its binary representation ? >> "Length() div 2" is not conventional nor portable. Vincent _______________________________________________ Lazarus mailing list [email protected] http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
