[Lazarus] UTF8 string compare with correct locale sorting
pascaldragon at googlemail.com
Tue Oct 22 12:32:55 CEST 2013
Am 22.10.2013 11:36, schrieb Lukasz Sokol:
> On 22/10/13 09:35, Michael Schnell wrote:
>> On 10/22/2013 10:24 AM, Sven Barth wrote:
>>> I didn't know until around 1 or 2 years ago that "<" and ">" are supported on strings at all
>> Nice try O:-)
> And (probably) overloaded operators are your friends here?
> operator < (S1, S2: UTF8String) b : boolean;
> b := (compareUTF8String(s1, s2, comparemode) < 0)
Nope, because Strings already have the "<" and ">" operators defined you
can not overload them.
More information about the Lazarus