Substring.IsExternal Property

property IsExternal: Boolean read GetIsExternal;

Whether the characters belong to another value: an adopted string, or a short Substring viewed by Subrange.

Returns: Boolean

Examples

An adopted string.

uses Substr;

procedure Example;
var Text: string;
    s: Substring;
begin
    Text := 'abc';
    s.Adopt(Text);
    Assert(s.IsExternal);
end;