RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
SysUtils.AnsiDequotedStr Function

Converts a quoted string into an unquoted string

Pascal
function AnsiDequotedStr(const S: string; AQuote: Char): string;
C++
AnsiString AnsiDequotedStr(const AnsiString S, Char AQuote);

SysUtils

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) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!