RAD Studio VCL Reference
SysUtils.AnsiQuotedStr Function

Returns the quoted version of a string.

function AnsiQuotedStr(const S: string; Quote: Char): string; overload;
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!