You are not logged in.
Pages: 1
Hi,
I found a bug in SynCommons.IdemPCharU().
The corrected code below:
function IdemPCharU(p, up: PUTF8Char): boolean;
begin
result := false;
if (p=nil) or (up=nil) then
exit;
while up^<>#0 do begin
if GetNextUTF8Upper(p)<>ord(up^) then
exit;
inc(up);
// inc(p); already incremented by GetNextUTF8Upper()
end;
result := true;
end;
Cheers,
Kevin Day
Offline
should be fixed by http://synopse.info/fossil/info/29e28f7e11
Thanks for the feedback!
Offline
Pages: 1