System.SysUtils.QuotedStr

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function QuotedStr(const S: string): string;

C++

extern DELPHI_PACKAGE System::UnicodeString __fastcall QuotedStr(const System::UnicodeString S)/* 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 QuotedStr to convert the string S to a quoted string. A single quotation mark (') is inserted at the beginning and end of S, and each single quotation mark in the string is repeated. To remove the quotation marks from a quoted string, use the AnsiDequotedStr routine.

Note: When working with multi-byte character systems (MBCS), use AnsiQuotedStr instead.

See Also