System.SysUtils.AnsiQuotedStr

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function AnsiQuotedStr(const S: string; Quote: Char): string;

C++

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

Properties

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

Description

Returns the quoted version of a string.

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 the AnsiDequotedStr routine.

Note: This function supports multi-byte character sets (MBCS).

See Also