JCL Help:StrSingleQuote@AnsiString

From Project JEDI Wiki
Jump to navigationJump to search


Summary

Returns a single-quoted version of the string.


Pascal

 function StrSingleQuote(const S: string): string;
function StrSingleQuote(const S: AnsiString): AnsiString;


Parameters

Parameters Description
const S: string The string to encapsulate in quotes. Even an empty string.


Return Value

The single-quoted version of the string.


Description

StrSingleQuote returns a copy of the string encapsulated in single quotes ('). That is, if you pass in 'Project JEDI' you'll get Project JEDI back.


See Also

StrDoubleQuote StrTrimQuotes


About

Unit

JclAnsiStrings


Donator

Anthony Steele


Contribute to this help topic

This documentation wiki is based on the collaborative effort of Project JEDI users. Your edits are welcome in order to improve documentation quality: edit this page