From Appmethod Libraries
Jump to: navigation, search

Object Pascal

function WideExtractQuotedStr(var Src: PWideChar; Quote: WideChar): Widestring;


extern DELPHI_PACKAGE System::WideString __fastcall WideExtractQuotedStr(System::WideChar * &Src, System::WideChar Quote);


Type Visibility Source Unit Parent
function public
System.WideStrUtils System.WideStrUtils


Converts a quoted PWideChar into an unquoted WideString.

WideExtractQuotedStr removes the quotation marks from the beginning and end of a quoted string, and reduces pairs of quotation marks within the string to a single quotation mark. The Quote parameter defines what character to use as a quotation mark. If the first character in Src is not the value of the Quote parameter, WideExtractQuotedStr returns an empty string.

The function copies characters from Src to the result string until the second solitary quotation mark or the first null character in Src. The Src parameter is updated to point to the first character following the quoted string. If Src does not contain a matching end quotation mark, the Src parameter is updated to point to the terminating null character.

See Also