| 1 | (* The escapes of a string, in capitals or not. *) |
| 2 | module Escapes; |
| 3 | import Out; |
| 4 | |
| 5 | proc main*; |
| 6 | var s: []const U8; i: INT; |
| 7 | begin |
| 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; |
| 14 | end; |
| 15 | |
| 16 | end Escapes. |