System.AnsiStrings.AnsiQuotedStr

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

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

C++

extern DELPHI_PACKAGE System::AnsiString __fastcall AnsiQuotedStr(const System::AnsiString S, char Quote)/* overload */;

Properties

Type Visibility Source Unit Parent
function public
System.AnsiStrings.pas
System.AnsiStrings.hpp
System.AnsiStrings System.AnsiStrings

Description

Get quoted string from string.

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.

See Also