blob: fd4b1550a20e91e6990544bf3b453fb0868070a0 [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,
Nir Lichtman73a02422021-12-24 20:28:03 +00009 /* b */ 21,
10 /* c */ 45,
11 /* d */ 112,
Bram Moolenaar1d84f762022-09-03 21:35:53 +010012 /* e */ 138,
13 /* f */ 167,
14 /* g */ 184,
15 /* h */ 190,
16 /* i */ 200,
17 /* j */ 220,
18 /* k */ 222,
19 /* l */ 227,
20 /* m */ 290,
21 /* n */ 308,
22 /* o */ 328,
23 /* p */ 340,
24 /* q */ 379,
25 /* r */ 382,
26 /* s */ 402,
27 /* t */ 472,
28 /* u */ 518,
29 /* v */ 529,
30 /* w */ 550,
31 /* x */ 564,
32 /* y */ 574,
33 /* z */ 575
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 */
Nir Lichtman73a02422021-12-24 20:28:03 +000044 /* a */ { 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5, 6, 7, 0, 0, 0, 8, 17, 0, 18, 0, 0, 0, 0, 0 },
Bram Moolenaar59d8e562020-11-07 18:41:10 +010045 /* b */ { 2, 0, 0, 5, 6, 8, 0, 0, 0, 0, 0, 9, 10, 11, 12, 13, 0, 14, 0, 0, 0, 0, 23, 0, 0, 0 },
Bram Moolenaarf05d2fc2021-06-06 22:02:16 +020046 /* c */ { 3, 12, 16, 18, 20, 22, 25, 0, 0, 0, 0, 33, 38, 41, 47, 57, 59, 60, 61, 0, 63, 0, 66, 0, 0, 0 },
Bram Moolenaar1d84f762022-09-03 21:35:53 +010047 /* d */ { 0, 0, 0, 0, 0, 0, 0, 0, 9, 19, 0, 20, 0, 0, 21, 0, 0, 23, 24, 0, 0, 0, 0, 0, 0, 0 },
Bram Moolenaar37fef162022-08-29 18:16:32 +010048 /* e */ { 1, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 9, 11, 12, 0, 0, 0, 0, 0, 0, 0, 23, 0, 24, 0, 0 },
Bram Moolenaar30fd8202020-09-26 15:09:30 +020049 /* f */ { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 0, 0, 0, 0, 0, 16, 0, 0, 0, 0, 0 },
Bram Moolenaar6de5e122017-04-20 21:55:44 +020050 /* 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 },
Bram Moolenaar21c3a802022-08-31 17:49:14 +010051 /* h */ { 5, 0, 0, 0, 0, 0, 0, 0, 6, 0, 0, 0, 0, 0, 9, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
Bram Moolenaar74235772021-06-12 14:53:05 +020052 /* i */ { 1, 0, 0, 0, 0, 3, 0, 0, 0, 4, 0, 5, 6, 0, 0, 0, 0, 0, 15, 0, 17, 0, 0, 0, 0, 0 },
Bram Moolenaar6de5e122017-04-20 21:55:44 +020053 /* 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 Moolenaar96cf4ba2021-04-24 14:15:41 +020055 /* l */ { 3, 11, 15, 19, 20, 25, 28, 33, 0, 0, 0, 35, 38, 41, 45, 51, 0, 53, 62, 54, 55, 59, 61, 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 Moolenaar74235772021-06-12 14:53:05 +020062 /* s */ { 2, 6, 15, 0, 19, 23, 0, 25, 26, 0, 0, 29, 31, 35, 39, 41, 0, 50, 0, 51, 0, 64, 65, 0, 66, 0 },
Bram Moolenaarf05d2fc2021-06-06 22:02:16 +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, 45, 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 },
Bram Moolenaar39f3b142021-02-14 12:57:36 +010065 /* v */ { 1, 0, 0, 0, 2, 0, 0, 0, 5, 0, 0, 0, 12, 15, 0, 0, 0, 0, 18, 0, 19, 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 Moolenaar1d84f762022-09-03 21:35:53 +010072static const int command_count = 592;