Lines Matching refs:decode
1 function decode(input, output, desc) { function
9 assert_equals(d.decode(view), output)
12 decode([0x1b, 0x24], "�$", "Error ESC")
13 decode([0x1b, 0x24, 0x50], "�$P", "Error ESC, character")
14 decode([0x1b, 0x28, 0x42, 0x50], "P", "ASCII ESC, character")
15 decode([0x1b, 0x28, 0x42, 0x1b, 0x28, 0x42, 0x50], "�P", "Double ASCII ESC, character")
16 decode([0x50, 0x1b, 0x28, 0x42, 0x50], "PP", "character, ASCII ESC, character")
17 decode([0x5C, 0x5D, 0x7E], "\\]~", "characters")
18 decode([0x0D, 0x0E, 0x0F, 0x10], "\x0D��\x10", "SO / SI")
20 decode([0x1b, 0x28, 0x4A, 0x5C, 0x5D, 0x7E], "¥]‾", "Roman ESC, characters")
21 decode([0x1b, 0x28, 0x4A, 0x0D, 0x0E, 0x0F, 0x10], "\x0D��\x10", "Roman ESC, SO / SI")
22 decode([0x1b, 0x28, 0x4A, 0x1b, 0x1b, 0x28, 0x49, 0x50], "�ミ", "Roman ESC, error ESC, Katakana ESC")
24 decode([0x1b, 0x28, 0x49, 0x50], "ミ", "Katakana ESC, character")
25 decode([0x1b, 0x28, 0x49, 0x1b, 0x24, 0x40, 0x50, 0x50], "�佩", "Katakana ESC, multibyte ESC, charac…
26 decode([0x1b, 0x28, 0x49, 0x1b, 0x50], "�ミ", "Katakana ESC, error ESC, character")
27 decode([0x1b, 0x28, 0x49, 0x1b, 0x24, 0x50], "�、ミ", "Katakana ESC, error ESC #2, character")
28 decode([0x1b, 0x28, 0x49, 0x50, 0x1b, 0x28, 0x49, 0x50], "ミミ", "Katakana ESC, character, Katakana E…
29 decode([0x1b, 0x28, 0x49, 0x0D, 0x0E, 0x0F, 0x10], "����", "Katakana ESC, SO / SI")
31 decode([0x1b, 0x24, 0x40, 0x50, 0x50], "佩", "Multibyte ESC, character")
32 decode([0x1b, 0x24, 0x42, 0x50, 0x50], "佩", "Multibyte ESC #2, character")
33 decode([0x1b, 0x24, 0x42, 0x1b, 0x50, 0x50], "�佩", "Multibyte ESC, error ESC, character")
34 decode([0x1b, 0x24, 0x40, 0x1b, 0x24, 0x40], "�", "Double multibyte ESC")
35 decode([0x1b, 0x24, 0x40, 0x1b, 0x24, 0x40, 0x50, 0x50], "�佩", "Double multibyte ESC, character")
36 decode([0x1b, 0x24, 0x40, 0x1b, 0x24, 0x42, 0x50, 0x50], "�佩", "Double multibyte ESC #2, character")
37 decode([0x1b, 0x24, 0x40, 0x1b, 0x24, 0x50, 0x50], "�ば�", "Multibyte ESC, error ESC #2, character")
39 decode([0x1b, 0x24, 0x40, 0x50, 0x1b, 0x24, 0x40, 0x50, 0x50], "�佩", "Multibyte ESC, single byte, m…
40 decode([0x1b, 0x24, 0x40, 0x20, 0x50], "��", "Multibyte ESC, lead error byte")
41 decode([0x1b, 0x24, 0x40, 0x50, 0x20], "�", "Multibyte ESC, trail error byte")
43 decode([0x50, 0x1b], "P�", "character, error ESC")
44 decode([0x50, 0x1b, 0x24], "P�$", "character, error ESC #2")
45 decode([0x50, 0x1b, 0x50], "P�P", "character, error ESC #3")
46 decode([0x50, 0x1b, 0x28, 0x42], "P", "character, ASCII ESC")
47 decode([0x50, 0x1b, 0x28, 0x4A], "P", "character, Roman ESC")
48 decode([0x50, 0x1b, 0x28, 0x49], "P", "character, Katakana ESC")
49 decode([0x50, 0x1b, 0x24, 0x40], "P", "character, Multibyte ESC")
50 decode([0x50, 0x1b, 0x24, 0x42], "P", "character, Multibyte ESC #2")