Character codes: Difference between revisions
Content added Content deleted
m (→{{header|Smalltalk}}: formatting) |
|||
Line 2,204: | Line 2,204: | ||
{{works with|Smalltalk/X}} |
{{works with|Smalltalk/X}} |
||
Ansi Smalltalk defines <tt>codePoint</tt> |
Ansi Smalltalk defines <tt>codePoint</tt> |
||
<lang smalltalk>Transcript showCR:$a codePoint |
<lang smalltalk>Transcript showCR:$a codePoint. |
||
Transcript showCR:(Character codePoint:97). |
|||
Transcript showCR:(98 asCharacter). |
|||
'abcmøøse𝔘𝔫𝔦𝔠𝔬𝔡𝔢' do:[:ch | |
'abcmøøse𝔘𝔫𝔦𝔠𝔬𝔡𝔢' do:[:ch | |
||
Transcript showCR:ch codePoint |
Transcript showCR:ch codePoint |
||
Line 2,211: | Line 2,214: | ||
{{out}} |
{{out}} |
||
<pre>97 |
<pre>97 |
||
a |
|||
b |
|||
97 |
|||
98 |
98 |
||
99 |
99 |