JCL Help:StrTrimQuotes@AnsiString

From Project JEDI Wiki
Jump to navigationJump to search


Summary

Removes surrounding quotes from the supplied string.


Pascal

 function StrTrimQuotes(const S: string): string;
function StrTrimQuotes(const S: AnsiString): AnsiString; overload;
function StrTrimQuotes(const S: AnsiString; QuoteChar: AnsiChar): AnsiString; overload;


Parameters

Parameters Description
const S: string The string to unquote.


Return Value

The unquoted string.


Description

StrTrimQuotes removes surrounding quotes, either single or double-quotes, from the string. For example if you pass in Project JEDI you'll get 'Project JEDI' back. Note that this function only removes quotes if the string both begins and ends with the same quote character.


See Also

StrSingleQuote StrDoubleQuote


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