[Lazarus] Ord of a UTF8 char

Antônio antoniog12345 at gmail.com
Sat Mar 27 19:24:45 CET 2010


For example:

var
  i :integer;
  s :utf8string;
begin
  for i := 0 to utf8klength(s) do
  begin

     // What the meaning of s[i] at this position?

  end;
end;

Antônio

2010/3/27 Antônio <antoniog12345 at gmail.com>:
> How do I parse a utf8 string?
>
> Antônio
>
> 2010/3/27 Mattias Gaertner <nc-gaertnma at netcologne.de>:
>> On Sat, 27 Mar 2010 14:46:39 -0300
>> Antônio <antoniog12345 at gmail.com> wrote:
>>
>>> I need to convert characters to numbers and I thought on a character
>>> table  or something.
>>
>> unit LCLProc has this UTF8 function:
>>
>> UTF8CharacterToUnicode
>>
>>
>> the system unit has this:
>>
>> Utf8ToUnicode
>>
>>
>> Do a find declaration to see the many UTF8 functions.
>>
>> Mattias
>>
>> --
>> _______________________________________________
>> Lazarus mailing list
>> Lazarus at lists.lazarus.freepascal.org
>> http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
>>
>




More information about the Lazarus mailing list