Sign in Join
FPDoc Onlineexperiment

DelSpace1 function

In unit StrUtils

Reduces sequences of space characters to 1 space character.

Declaration

pascal
function DelSpace1(const S: string): string

Arguments

S

String to reduce space sequences in.

Function result

Original string with series of maximal 1 space.

Description

DelSpace1 returns a copy of S with all sequences of spaces reduced to 1 space.

Errors

None.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.