RAD Studio VCL Reference
|
Converts a quoted PWideChar into an unquoted WideString.
function WideExtractQuotedStr(var Src: PWideChar; Quote: WideChar): WideString;
BSTR WideExtractQuotedStr(PWideChar Src, WideChar Quote);
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.
Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
|
What do you think about this topic? Send feedback!
|