Sign in Join
FPDoc Onlineexperiment

AnsiQuotedStr function

In unit sysutils

Return a quoted version of a string.

Declaration

pascal
function AnsiQuotedStr(const S: string; Quote: char): string

Description

AnsiQuotedString quotes the string S and returns the result. This means that it puts the Quote character at both the beginning and end of the string and replaces any occurrence of Quote in S with 2 Quote characters. The action of AnsiQuotedString can be reversed by AnsiExtractQuotedStr.

For an example, see AnsiExtractQuotedStr

Errors

None.

See also

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