TSubstringListLinguistic.LocaleID Property

property LocaleID: TLocaleID read GetLocaleID write SetLocaleID;

The locale the items compare in: the default locale unless set. A sorted list is sorted again when it changes.

Returns: TLocaleID

Examples

Turkish rules for the dotted capital I.

uses Substr, System.SysUtils;

procedure Example;
var List: TSubstringListLinguistic;
begin
    List := TSubstringListLinguistic.Create(2);
    try
        List.LocaleID := TLocaleID($041F);
        List.Add(#$0130'stanbul');
        Assert(List.IndexOf('istanbul') = 0);
    finally
        List.Free;
    end;
end;