Character codes: Difference between revisions
Content added Content deleted
imported>J7M (add SmallBASIC example) |
m (→{{header|Wren}}: Changed to Wren S/H) |
||
Line 2,693: | Line 2,693: | ||
=={{header|Wren}}== |
=={{header|Wren}}== |
||
Wren does not have a ''character'' type as such but one can use single character strings instead. Strings can contain any Unicode code point. |
Wren does not have a ''character'' type as such but one can use single character strings instead. Strings can contain any Unicode code point. |
||
<syntaxhighlight lang=" |
<syntaxhighlight lang="wren">var cps = [] |
||
for (c in ["a", "π", "字", "🐘"]) { |
for (c in ["a", "π", "字", "🐘"]) { |
||
var cp = c.codePoints[0] |
var cp = c.codePoints[0] |
||
Line 2,717: | Line 2,717: | ||
128024 = 🐘 |
128024 = 🐘 |
||
</pre> |
</pre> |
||
=={{header|XLISP}}== |
=={{header|XLISP}}== |
||
In a REPL: |
In a REPL: |