RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
AnsiStrings.AnsiQuotedStr Function

Get quoted string from string.

Pascal
function AnsiQuotedStr(const S: AnsiString; Quote: AnsiChar): AnsiString; overload;
C++
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!