Sign in Join
FPDoc Onlineexperiment

RemoveAmpersands function

In unit LCLProc

Removes single Ampersand characters, and returns the converted value.

Declaration

pascal
function RemoveAmpersands(const ASource: string): string

Arguments

ASource

String with the values examined in the routine.

Function result

Value after single Ampersand characters are removed.

Description

RemoveAmpersands is an overloaded function used to remove all occurrences of a single Ampersand (&) character from the specified value. It provides variants that operate on String and PChar types. The return value contains the original value after all single Ampersand characters have been removed. Double Ampersand (&&) characters are converted into a single Ampersand character.

Use DeleteAmpersands to remove Ampersand character in the original String value.

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