blob: 53081d0690e1595d0355ce1f37493ac29e0ecf27 [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,
Bram Moolenaar822ba242020-05-24 23:00:18 +020012 /* e */ 133,
13 /* f */ 156,
14 /* g */ 172,
15 /* h */ 178,
16 /* i */ 187,
17 /* j */ 206,
18 /* k */ 208,
19 /* l */ 213,
20 /* m */ 275,
21 /* n */ 293,
22 /* o */ 313,
23 /* p */ 325,
24 /* q */ 364,
25 /* r */ 367,
26 /* s */ 387,
27 /* t */ 456,
28 /* u */ 501,
29 /* v */ 512,
30 /* w */ 531,
31 /* x */ 545,
32 /* y */ 555,
33 /* z */ 556
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 Moolenaar822ba242020-05-24 23:00:18 +020047 /* d */ { 0, 0, 0, 0, 0, 0, 0, 0, 8, 18, 0, 19, 0, 0, 20, 0, 0, 22, 23, 0, 0, 0, 0, 0, 0, 0 },
Bram Moolenaar8a7d6542020-01-26 15:56:19 +010048 /* e */ { 1, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 7, 9, 10, 0, 0, 0, 0, 0, 0, 0, 17, 0, 18, 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 },
Bram Moolenaar8a7d6542020-01-26 15:56:19 +010052 /* i */ { 1, 0, 0, 0, 0, 3, 0, 0, 0, 4, 0, 5, 6, 0, 0, 0, 0, 0, 14, 0, 16, 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 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 Moolenaar08cc3742019-08-11 22:51:14 +020062 /* s */ { 2, 6, 15, 0, 19, 23, 0, 25, 26, 0, 0, 29, 31, 35, 39, 41, 0, 50, 0, 51, 0, 63, 64, 0, 65, 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 },
Bram Moolenaar8a7d6542020-01-26 15:56:19 +010065 /* v */ { 0, 0, 0, 0, 1, 0, 0, 0, 4, 0, 0, 0, 10, 13, 0, 0, 0, 0, 16, 0, 17, 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 Moolenaar822ba242020-05-24 23:00:18 +020072static const int command_count = 569;