System.SysUtils.AnsiExtractQuotedStr

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

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

C++

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

Properties

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

Description

Warning: The ANSI version of AnsiExtractQuotedStr is deprecated. Please use the 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