Character codes: Difference between revisions
Content added Content deleted
(added Ursala) |
|||
Line 329: | Line 329: | ||
<lang vbnet>Console.WriteLine(Chr(97)) 'Prints a |
<lang vbnet>Console.WriteLine(Chr(97)) 'Prints a |
||
Console.WriteLine(Asc("a")) 'Prints 97</lang> |
Console.WriteLine(Asc("a")) 'Prints 97</lang> |
||
=={{header|Ursala}}== |
|||
Character code functions are not built in but easily defined as reifications of |
|||
the character table. |
|||
<lang Ursala> |
|||
#import std |
|||
#import nat |
|||
chr = -: num characters |
|||
asc = -:@rlXS num characters |
|||
#cast %cnX |
|||
test = (chr97,asc`a) |
|||
</lang> |
|||
output: |
|||
<pre> |
|||
(`a,97) |
|||
</pre> |