RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
SysUtils.AnsiQuotedStr Function

Returns the quoted version of a string.

Pascal
function AnsiQuotedStr(const S: string; Quote: Char): string; overload;
C++
AnsiString AnsiQuotedStr(const AnsiString S, Char Quote);

Use AnsiQuotedStr to convert a string (S) to a quoted string, using the provided Quote character. A Quote character is inserted at the beginning and end of S, and each Quote character in the string is doubled. To remove the quotes from a quoted string, use AnsiDequotedStr routine.

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!