RAD Studio VCL Reference
AnsiStrings.AnsiQuotedStr Function

Get quoted string from string.

function AnsiQuotedStr(const S: AnsiString; Quote: AnsiChar): AnsiString; overload;
AnsiString AnsiQuotedStr(const AnsiString S, AnsiChar Quote);

AnsiQuotedStr returns the given AnsiString as a quoted AnsiString, using the provided character Quote. A quote character is inserted at the beginning and end of the AnsiString, and each quote character in the AnsiString is doubled. This function supports multibyte character AnsiStrings (MBCS). To remove the quotes from a quoted string, use AnsiDequotedStr routine. 


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