Literals/String: Difference between revisions

Added 11l
m (\u, \U are now properly explained in the official documentation.)
(Added 11l)
Line 18:
*   [[Here document]]
<br><br>
 
=={{header|11l}}==
Character literals:
<lang 11l>V c = Char(‘a’)</lang>
 
Regular string literals are enclosed in double quotes, and use \ to delimit special characters:
<lang 11l>"foo\nbar"</lang>
 
Raw string literals are enclosed in paired single quotation marks:
<lang 11l>‘foo
bar’</lang>
If raw string literal should contains unpaired single quotation marks, then balancing of raw string should be performed:
<lang 11l>'‘‘don’t’ // the same as "don’t"</lang>
 
=={{header|Ada}}==
1,480

edits