function QuotedStr(const S: Substring): Substring; overload; inline;
S in apostrophes, every apostrophe inside doubled.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | S | Substring |
Returns: Substring
Examples
Quoting.
uses Substr;
procedure Example;
begin
Assert(QuotedStr(Substring('it''s')) = '''it''''s''');
end;