Sign in Join
FPDoc Onlineexperiment

DelChars function

In unit StrUtils

Delete all occurrences of a given character from a string.

Declaration

pascal
function DelChars(const S: string; Chr: char): string

Arguments

S

String to delete characters from.

Chr

Character which must be deleted.

Function result

Original string with all occurrences of the given character deleted.

Description

DelChars returns a copy of S with all Chr characters removed from it.

Errors

None.

See also

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