<div dir="ltr">I tried this out today on FPC fixes_3_0 and was surprised to see it worked:<div><br></div><div><div>type</div><div>  StringHelper = record helper for string</div><div>  private</div><div>    function GetLength: Integer;</div><div>  procedure SetLength(Value: Integer);</div><div>    function GetIsEmpty: Boolean;</div><div>    function GetIsWhitespace: Boolean;</div><div>  public</div><div>    function BeginsWith(const S: string): Boolean;</div><div>    function EndsWith(const S: string): Boolean;</div><div>    function Trim: string;</div><div>    property Length: Integer read GetLength write SetLength;</div><div>    property IsEmpty: Boolean read GetIsEmpty;</div><div>    property IsWhitespace: Boolean read GetIsWhitespace;</div><div>  end;</div></div><div><br></div><div>I love this and would like to know if this is going to be an officially supported feature and can I depend on it to work going forward?</div><div><br></div><div>I wrote a string library which is maybe 10x faster for searching, replacing, trimming strings than the default RTL functions and was considering moving them and other add-ons to record helper properties and methods as above.</div></div>