Character codes: Difference between revisions
m
→{{header|Ecstasy}}
Line 839:
=={{header|Ecstasy}}==
<syntaxhighlight lang="java">
module CharacterCodes {
@Inject Console console;
void run() {
for (Char char : ['\0', '\d', 'A', '$', '¢', '~', '˜']) {▼
▲ for (Char char : ['\0', '\d', 'A', '$', '¢', '~', '˜'])
// character to its integer value
UInt32 codepoint = char.codepoint;
Line 858 ⟶ 855:
| char from codepoint={fromCodePoint.quoted()}
);
}
}
}
</syntaxhighlight>
|