Literals/String: Difference between revisions

m
mNo edit summary
 
(2 intermediate revisions by 2 users not shown)
Line 1,954:
=={{header|Pascal}}==
See [[Literals/String#Delphi | Delphi]]
 
=={{header|PascalABC.NET}}==
<syntaxhighlight lang="delphi">
##
var s1 := 'Hello';
var s2 := 'quotes ''in'' string';
var s3 := 'chars with a'#13#10'given code in string';
</syntaxhighlight>
 
=={{header|Perl}}==
Line 3,223 ⟶ 3,231:
 
From v0.4.0 Wren also supports ''raw'' string literals. These are any text surrounded by triple double quotes, """, and are interpreted verbatim i.e. any control codes and/or interpolations are not processed as such. They can include single or double double quotes without problem.
<syntaxhighlight lang="ecmascriptwren">var s = "abc123"
var t = "abc\t123\%"
var u = "\U0001F64A\U0001F680"
246

edits