Substring.Chars Constant

Chars: PChar;

The text's characters, 0-based, read without an index check.

Remarks:

Chars points at the first character and carries no length; a change of the string can move its characters. Length is s.Length, and s[i] is the checked access.

Examples

Reading through Chars.

uses Substr;

procedure Example;
var s: Substring;
begin
    s := Substring('abc');
    Assert(s.Chars[1] = 'b');
end;