JCL Help:StrDoubleQuote@AnsiString

From Project JEDI Wiki
Jump to navigationJump to search


Summary

Returns a double-quoted version of the string.


Pascal

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


Parameters

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


Return Value

The double-quoted version of the string.


Description

StrDoubleQuote returns a copy of the string encapsulated in double quotes ("). That is, if you pass in 'Project JEDI' you'll get '"Project JEDI"' back. If double quotes (") are already at the beginning and the end of the string they are added again. If they should be added only if they are not already there use StrQuote instead.


See Also

StrQuote StrSingleQuote 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