System.SysUtils.TStringHelper.DeQuotedString

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function DeQuotedString: string; overload;
function DeQuotedString(const QuoteChar: Char): string; overload;

Properties

Type Visibility Source Unit Parent
function public System.SysUtils.pas System.SysUtils TStringHelper

Description

This method removes the quote characters from a string.

DeQuotedString removes the quote characters from the beginning and end of a quoted string, and reduces pairs of quote characters within the quoted string to a single character.

Example

var
myString: string;

begin
  myString := '''''This function illustrates the f''''unctionality of'' the DeQuoted''String method.''';
  myString := myString.DeQuotedString;
  writeln(myString);
  readln;
end.

See Also