From Appmethod Libraries
Jump to: navigation, search

Object Pascal

function AnsiExtractQuotedStr(var Src: PAnsiChar; Quote: AnsiChar): AnsiString;
function AnsiExtractQuotedStr(var Src: PWideChar; Quote: WideChar): UnicodeString;


extern DELPHI_PACKAGE System::AnsiString __fastcall AnsiExtractQuotedStr _DEPRECATED_ATTRIBUTE1("Moved to the AnsiStrings unit") (char * &Src, char Quote)/* overload */;


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


Warning: Ansi version of AnsiExtractQuotedStr is deprecated. Please use AnsiStrings unit.

Converts a quoted string into an unquoted string.

AnsiExtractQuotedStr 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, AnsiExtractQuotedStr 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.

Note: This function supports multi-byte character sets (MBCS).

See Also