System.AnsiStrings.AnsiExtractQuotedStr
Delphi
function AnsiExtractQuotedStr(var Src: PAnsiChar; Quote: AnsiChar): AnsiString;
C++
extern DELPHI_PACKAGE System::AnsiString __fastcall AnsiExtractQuotedStr(char * &Src, char Quote)/* overload */;
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | System.AnsiStrings.pas System.AnsiStrings.hpp |
System.AnsiStrings | System.AnsiStrings |
Description
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).