Difference between revisions of "Trim"

From SCAR Divi Manual
Jump to: navigation, search
(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...")
 
 
(One intermediate revision by the same user not shown)
Line 5: Line 5:
  
 
==Availability==
 
==Availability==
SCAR Divi 3.25 > Current
+
SCAR Divi 3.00 > Current
  
 
==Description==
 
==Description==
Trims all white-spaces at the beginning and end of a [[AnyString|string]] '''s'''. An extended function with additional functionality is available as [[TrimEx]].
+
Trims all white-spaces at the beginning and ending of a [[AnyString|string]] '''s'''. An extended function with additional functionality is available as [[TrimEx]].
  
 
==Example==
 
==Example==

Latest revision as of 00:11, 27 June 2011

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