[Lazarus] Error in UTF8CompareText comment

Jürgen Hestermann juergen.hestermann at gmx.de
Thu Aug 13 12:39:15 CEST 2015


Am 2015-08-13 um 12:15 schrieb Mattias Gaertner:
> On Thu, 13 Aug 2015 11:52:26 +0200
> Jürgen Hestermann <juergen.hestermann at gmx.de> wrote:
>
>> There is a comment for UTF8CompareText in LazUTF8 which is contradictorily:
>>
>> // Returns: < 0 if S1 < S2, 0 if S1 = S2, > 0 if S2 > S1.
>>
>> But S1 < S2 is the same as S2 > S1.
> It should be >0 if S1 > S2. I changed the comment.

Thanks.




More information about the Lazarus mailing list