RAD Studio VCL Reference
SysUtils.AnsiDequotedStr Function

Converts a quoted string into an unquoted string

function AnsiDequotedStr(const S: string; AQuote: Char): string; overload;
AnsiString AnsiDequotedStr(const AnsiString S, Char AQuote);

AnsiDequotedStr removes the quote characters from the beginning and end of a quoted string, and reduces pairs of quote characters within the string to a single quote character. The AQuote parameter defines what character to use as a quote character. If the S parameter does not begin and end with the quote character, AnsiDequotedStr returns S unchanged.

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

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!