September Morn Update
This commit is contained in:
parent
4e2d22a71d
commit
aac6731f2c
6856 changed files with 141342 additions and 21127 deletions
1
Task/Unicode-strings/00META.yaml
Normal file
1
Task/Unicode-strings/00META.yaml
Normal file
|
|
@ -0,0 +1 @@
|
|||
--- {}
|
||||
|
|
@ -1,8 +1,8 @@
|
|||
program =
|
||||
[
|
||||
var 四十二 := "♥♦♣♠". // UTF8 string
|
||||
var строка := "Привет"w. // UTF16 string
|
||||
public program()
|
||||
{
|
||||
var 四十二 := "♥♦♣♠"; // UTF8 string
|
||||
var строка := "Привет"w; // UTF16 string
|
||||
|
||||
console writeLine:строка.
|
||||
console writeLine:四十二.
|
||||
].
|
||||
console.writeLine:строка;
|
||||
console.writeLine:四十二;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -0,0 +1,22 @@
|
|||
Module Module1
|
||||
|
||||
Sub Main()
|
||||
Console.OutputEncoding = Text.Encoding.Unicode
|
||||
|
||||
' normal identifiers allowed
|
||||
Dim a = 0
|
||||
' unicode characters allowed
|
||||
Dim δ = 1
|
||||
|
||||
' ascii strings
|
||||
Console.WriteLine("some text")
|
||||
' unicode strings strings
|
||||
Console.WriteLine("こんにちは")
|
||||
Console.WriteLine("Здравствуйте")
|
||||
Console.WriteLine("שלום")
|
||||
' escape sequences
|
||||
Console.WriteLine(vbTab + "text" + vbTab + ChrW(&H2708) + """blue")
|
||||
Console.ReadLine()
|
||||
End Sub
|
||||
|
||||
End Module
|
||||
Loading…
Add table
Add a link
Reference in a new issue