JCL Help:StrQuote@AnsiString@AnsiChar

From Project JEDI Wiki
Jump to navigationJump to search


Summary

Quotes a string with a specific character.


Pascal

 function StrQuote(const S: string; C: Char): string;
function StrQuote(const S: AnsiString; C: AnsiChar): AnsiString;


Parameters

Parameters Description
const S: string The string to quote.
C: Char The character with which to quote the string.


Return Value

The quoted string.


Description

StrQuote quotes the string with a specified character. Upon return the string is guarenteed to begin and end with the specified character. Note that if the string already starts or ends with this character, it is not added again.


About

Unit

JclAnsiStrings


Donator

Azret Botash


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