raz / conform / run / Escapes.raz

16 lines · 316 B · raw · history · last change 264716cb

1(* The escapes of a string, in capitals or not. *)
2module Escapes;
3import Out;
4
5proc main*;
6var s: []const U8; i: INT;
7begin
8 s := "\xaF\xAF\u{1f600}\u{1F600}\x41\u{e9}";
9 for i := 0 to LEN(s) - 1 do
10 if i > 0 then Out.char(' '); end;
11 Out.int(I64(s[i]));
12 end;
13 Out.ln;
14end;
15
16end Escapes.