Literals/String: Difference between revisions

Added DWScript
(→‎{{header|PARI/GP}}: more on \\ and \")
(Added DWScript)
Line 224:
lLine := 'some text';
lMultiLine := 'some text' + #13#10 + 'on two lines';</lang>
 
=={{header|DWScript}}==
Strings are either single or double quote delimited, if you want to include the delimiter in the string, you just double it.
Specific character codes (Unicode) can be specified via # (outside of the string).
<lang delphi>
const s1 := 'quoted "word" in string';
const s2 := "quoted ""word"" in string"; // sames as s1, shows the doubling of the delimiter
const s2 := 'first line'#13#10'second line'; // CR+LF in the middle
</lang>
 
=={{header|E}}==
Anonymous user