Explode

From SCAR Divi Manual
Revision as of 19:24, 18 October 2012 by Freddy (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Definition

function Explode(const Separator, Str: string): TStrArray;

Availability

SCAR Divi 3.20 > Current

Description

Splits a given string Str into a TStrArray by breaking of at every substring given by Separator. An extended function with additional functionality is available as ExplodeEx. When Str is empty, the function will return an empty array.

Example

begin
  WriteLn(Implode(' ', Explode('roflcopter', 'HelloroflcopterWorld!')));
end.

Output:

Hello World!

See Also