Trim

From SCAR Divi Manual
Revision as of 23:50, 26 June 2011 by Freddy (talk | contribs) (Created page with "==Definition== <source lang="scar" lines="false"> function Trim(s: AnyString): AnyString; </source> ==Availability== SCAR Divi 3.25 > Current ==Description== Trims all white-sp...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Definition

function Trim(s: AnyString): AnyString;

Availability

SCAR Divi 3.25 > Current

Description

Trims all white-spaces at the beginning and end 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