Substring.IsCacheless Property

property IsCacheless: Boolean read GetIsCacheless;

Whether the characters are in memory from the memory manager rather than the thread's block cache: a TSubstringList item longer than the inline storage, or what shares or grows from one.

Returns: Boolean

Examples

A list's long item.

uses Substr;

procedure Example;
var L: TSubstringList;
begin
    L := TSubstringList.Create;
    try
        L.Capacity := 1;
        L.Add(Substring.Create('a', 600));
        Assert(L.Items[0].IsCacheless);
    finally
        L.Free;
    end;
end;