Sign in Join
FPDoc Onlineexperiment

AnsiDequotedStr function

In unit sysutils

Extract string without quotes.

Declaration

pascal
function AnsiDequotedStr(const S: string; AQuote: char): string

Description

AnsiDequotedStr is, similar to AnsiExtractQuotedStr, a method to extract a string that was quoted using AnsiQuotedStr. The string S must start and end with the quote character AQuote (they will be removed from the result) and all double occurrences of the quote character AQuote will be reduced to a single quote character.

Errors

If the string does not start and end with the quote character or has length less than 2, the original string is returned.

See also

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