[Lazarus] Checking characters in a string

Lukasz Sokol el.es.cr at gmail.com
Thu Mar 13 12:21:27 CET 2014


On 13/03/14 09:29, Michael Schnell wrote:
> On 03/12/2014 07:08 PM, silvioprog wrote:
>>
>> It is not hard to allow chars like "ã", "Ã", "ñ", "Ñ", "ç", "Ç", "ä", "Ä" etc. I left the function a little faster too:
>>
> ????
> 
> These beasts in UTF-8 are not "char" s (but multi-Byte codes) so your example code "c: char" ... will not work :-( .
> 
> -Michael
> 

He converts to PChar, then checks byte values, not characters. (see the second message where he rectifies it a bit).

-L.





More information about the Lazarus mailing list