Time for an 2014 update…
This commit is contained in:
parent
372c577f83
commit
09687c4926
2520 changed files with 34227 additions and 7318 deletions
1
Task/Character-codes/BASIC/character-codes-3.basic
Normal file
1
Task/Character-codes/BASIC/character-codes-3.basic
Normal file
|
|
@ -0,0 +1 @@
|
|||
?CHR$(97)"="ASC(CHR$(97))
|
||||
|
|
@ -4,3 +4,7 @@
|
|||
; Unicode is also available, as Clojure uses the underlying java Strings & chars
|
||||
(print (int \π)) ; prints 960
|
||||
(print (char 960)) ; prints \π
|
||||
|
||||
; use String because char in Java can't represent characters outside Basic Multilingual Plane
|
||||
(print (.codePointAt "𝅘𝅥𝅮" 0)) ; prints 119136
|
||||
(print (String. (int-array 1 119136) 0 1)) ; prints 𝅘𝅥𝅮
|
||||
|
|
|
|||
|
|
@ -1,8 +1,7 @@
|
|||
#define std'dictionary'*.
|
||||
#define std'basic'*.
|
||||
#define system.
|
||||
|
||||
#symbol Program =>
|
||||
[
|
||||
'program'output << WideCharVar::"a" numeric.
|
||||
'program'output << WideCharVar::97.
|
||||
console write:("a" getAt:0 Number).
|
||||
console write:(CharValue new:97).
|
||||
].
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
# Code must be in 0 .. 255.
|
||||
CHAR_INT(65);
|
||||
CharInt(65);
|
||||
# 'A'
|
||||
INT_CHAR('Z');
|
||||
IntChar('Z');
|
||||
# 90
|
||||
|
|
|
|||
2
Task/Character-codes/Julia/character-codes.julia
Normal file
2
Task/Character-codes/Julia/character-codes.julia
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
println(int('a'))
|
||||
println(char(97))
|
||||
2
Task/Character-codes/VBA/character-codes.vba
Normal file
2
Task/Character-codes/VBA/character-codes.vba
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
Debug.Print Chr(97) 'Prints a
|
||||
Debug.Print [Code("a")] ' Prints 97
|
||||
Loading…
Add table
Add a link
Reference in a new issue