[Overview][Constants][Types][Classes][Procedures and functions][Variables] Reference for unit 'sysutils' (#rtl)

AnsiQuotedStr

Return a quoted version of a string.

Declaration

Source position: sysstrh.inc line 96

function AnsiQuotedStr(

  const S: String;

  Quote: Char

):String;

Description

AnsiQuotedStringquotes the string Sand returns the result. This means that it puts the Quotecharacter at both the beginning and end of the string and replaces any occurrence of Quotein Swith 2 Quotecharacters. The action of AnsiQuotedStringcan be reversed by AnsiExtractQuotedStr.

For an example, see AnsiExtractQuotedStr

Errors

None.

See also

AnsiExtractQuotedStr

  

Removes the first quoted string from a string.