Trim

From SCAR Divi Manual
Jump to: navigation, search

Definition

function Trim(s: AnyString): AnyString;

Availability

SCAR Divi 3.00 > Current

Description

Trims all white-spaces at the beginning and ending of a string s. An extended function with additional functionality is available as TrimEx.

Example

begin
  WriteLn(Trim('  Hello World!  '));
end.

Output:

Hello World!

See Also