[Lazarus] substr return wrong string with some utf8 char
José Mejuto
joshyfun at gmail.com
Fri Feb 11 19:10:15 CET 2011
Hello Lazarus-List,
Friday, February 11, 2011, 6:55:43 PM, you wrote:
>> Nothing is needed for utf8copy ;) utf8pos is needed to return the
>> "characters" position of an string it use for utf8copy or to display
>> the information somewhere is a different matter.
HPD> Why determine an UTF-8 character index, when this one has to be
HPD> converted later into an byte (char) index inside utf8copy?
Please, re-read my comment ( fixing my "it use" by "if used" :) ). The
result is a character position index, not a need for use copy, but
maybe for an information display.
--
Best regards,
José
More information about the Lazarus
mailing list