blob: 1c301ba83ac69e91b879eecc25582bf505901067 [file] [log] [blame]
Bram Moolenaar6de5e122017-04-20 21:55:44 +02001/* Automatically generated code by create_cmdidxs.vim
2 *
3 * Table giving the index of the first command in cmdnames[] to lookup
4 * based on the first letter of a command.
5 */
6static const unsigned short cmdidxs1[26] =
7{
8 /* a */ 0,
9 /* b */ 19,
10 /* c */ 42,
Bram Moolenaar9937a052019-06-15 15:45:06 +020011 /* d */ 108,
12 /* e */ 130,
Bram Moolenaar25e42232019-08-04 15:04:10 +020013 /* f */ 151,
14 /* g */ 167,
15 /* h */ 173,
16 /* i */ 182,
17 /* j */ 200,
18 /* k */ 202,
19 /* l */ 207,
20 /* m */ 269,
21 /* n */ 287,
22 /* o */ 307,
23 /* p */ 319,
24 /* q */ 358,
25 /* r */ 361,
26 /* s */ 381,
27 /* t */ 449,
28 /* u */ 494,
29 /* v */ 505,
30 /* w */ 523,
31 /* x */ 537,
32 /* y */ 547,
33 /* z */ 548
Bram Moolenaar6de5e122017-04-20 21:55:44 +020034};
35
36/*
37 * Table giving the index of the first command in cmdnames[] to lookup
38 * based on the first 2 letters of a command.
39 * Values in cmdidxs2[c1][c2] are relative to cmdidxs1[c1] so that they
40 * fit in a byte.
41 */
42static const unsigned char cmdidxs2[26][26] =
43{ /* a b c d e f g h i j k l m n o p q r s t u v w x y z */
44 /* a */ { 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4, 5, 6, 0, 0, 0, 7, 15, 0, 16, 0, 0, 0, 0, 0 },
45 /* b */ { 2, 0, 0, 4, 5, 7, 0, 0, 0, 0, 0, 8, 9, 10, 11, 12, 0, 13, 0, 0, 0, 0, 22, 0, 0, 0 },
Bram Moolenaar9937a052019-06-15 15:45:06 +020046 /* c */ { 3, 12, 16, 18, 20, 22, 25, 0, 0, 0, 0, 33, 37, 40, 46, 56, 58, 59, 60, 0, 62, 0, 65, 0, 0, 0 },
Bram Moolenaar6de5e122017-04-20 21:55:44 +020047 /* d */ { 0, 0, 0, 0, 0, 0, 0, 0, 6, 15, 0, 16, 0, 0, 17, 0, 0, 19, 20, 0, 0, 0, 0, 0, 0, 0 },
Bram Moolenaar25e42232019-08-04 15:04:10 +020048 /* e */ { 1, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 7, 9, 10, 0, 0, 0, 0, 0, 0, 0, 16, 0, 17, 0, 0 },
Bram Moolenaar6de5e122017-04-20 21:55:44 +020049 /* f */ { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 9, 0, 0, 0, 0, 0, 15, 0, 0, 0, 0, 0 },
50 /* g */ { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 2, 0, 0, 4, 5, 0, 0, 0, 0 },
51 /* h */ { 5, 0, 0, 0, 0, 0, 0, 0, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
52 /* i */ { 1, 0, 0, 0, 0, 3, 0, 0, 0, 4, 0, 5, 6, 0, 0, 0, 0, 0, 13, 0, 15, 0, 0, 0, 0, 0 },
53 /* j */ { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0 },
54 /* k */ { 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
Bram Moolenaarcf6a55c2019-05-05 15:02:30 +020055 /* l */ { 3, 11, 15, 19, 20, 24, 27, 32, 0, 0, 0, 34, 37, 40, 44, 50, 0, 52, 61, 53, 54, 58, 60, 0, 0, 0 },
Bram Moolenaar6de5e122017-04-20 21:55:44 +020056 /* m */ { 1, 0, 0, 0, 7, 0, 0, 0, 0, 0, 10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 16 },
57 /* n */ { 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5, 8, 10, 0, 0, 0, 0, 0, 17, 0, 0, 0, 0, 0 },
58 /* o */ { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 2, 5, 0, 0, 0, 0, 0, 0, 9, 0, 11, 0, 0, 0 },
Bram Moolenaar3ff5f0f2019-06-10 13:11:22 +020059 /* p */ { 1, 0, 3, 0, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 7, 9, 0, 0, 16, 17, 26, 0, 27, 0, 28, 0 },
Bram Moolenaar6de5e122017-04-20 21:55:44 +020060 /* q */ { 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
Bram Moolenaare12bab32019-01-08 22:02:56 +010061 /* r */ { 0, 0, 0, 0, 0, 0, 0, 0, 12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 14, 19, 0, 0, 0, 0 },
Bram Moolenaar558ca4a2019-04-04 18:15:38 +020062 /* s */ { 2, 6, 15, 0, 19, 23, 0, 25, 26, 0, 0, 29, 31, 35, 39, 41, 0, 49, 0, 50, 0, 62, 63, 0, 64, 0 },
Bram Moolenaar00aa0692019-04-27 20:37:57 +020063 /* t */ { 2, 0, 19, 0, 24, 26, 0, 27, 0, 28, 0, 29, 33, 36, 38, 39, 0, 40, 42, 0, 43, 0, 0, 0, 0, 0 },
Bram Moolenaar6de5e122017-04-20 21:55:44 +020064 /* u */ { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
65 /* v */ { 0, 0, 0, 0, 1, 0, 0, 0, 4, 0, 0, 0, 9, 12, 0, 0, 0, 0, 15, 0, 16, 0, 0, 0, 0, 0 },
Bram Moolenaarbb1969b2019-01-17 15:45:25 +010066 /* w */ { 2, 0, 0, 0, 0, 0, 0, 3, 4, 0, 0, 0, 0, 8, 0, 9, 10, 0, 0, 0, 12, 13, 0, 0, 0, 0 },
Bram Moolenaard4aa83a2019-05-09 18:59:31 +020067 /* x */ { 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 5, 0, 0, 0, 7, 0, 0, 8, 0, 0, 0, 0, 0 },
Bram Moolenaar6de5e122017-04-20 21:55:44 +020068 /* y */ { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
69 /* z */ { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }
70};
71
Bram Moolenaar25e42232019-08-04 15:04:10 +020072static const int command_count = 561;