System.SysUtils.TStringHelper.Trim

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function Trim: string; overload;
function Trim(const TrimChars: array of Char): string; overload;

Properties

Type Visibility Source Unit Parent
function public System.SysUtils.pas System.SysUtils TStringHelper

Description

Trims leading and trailing spaces and control characters from this string.

There are two Trim overloaded methods:

  • The first one takes no parameters.
  • The second one allows you to specify which characters (in the form of an array of characters) to trim from this string.

See Also