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;
C++
AnsiString AnsiQuotedStr(const AnsiString S, Char Quote);

SysUtils

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.

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!