function DeQuotedString(const QuoteChar: Char = ''''): Substr.Substring;
QuotedString undone: for a text quoted at both ends, the text inside, every doubled QuoteChar single (a lone one dropped).
| # | Name | Type | Description |
|---|---|---|---|
| 1 | QuoteChar | Char |
Returns: Substring - The text inside the quotes, or the text itself as a part when it is not quoted at both ends.
Examples
Unquoting.
uses Substr;
procedure Example;
begin
Assert(Substring('''it''''s''').DeQuotedString = 'it''s');
Assert(Substring('abc').DeQuotedString = 'abc');
end;