getV2SpecNamesForFirstChar function
Returns the list of v2 command names whose first character (ignoring case) equals firstChar.
Implementation
List<String> getV2SpecNamesForFirstChar(String firstChar) {
if (firstChar.isEmpty) return const [];
final c = firstChar.length == 1
? firstChar.toLowerCase()
: firstChar[0].toLowerCase();
switch (c) {
case '-':
return v2SpecNamesFirstChar_minus;
case '@':
return v2SpecNamesFirstChar_at;
case 'a':
return v2SpecNamesFirstChar_a;
case 'b':
return v2SpecNamesFirstChar_b;
case 'c':
return v2SpecNamesFirstChar_c;
case 'd':
return v2SpecNamesFirstChar_d;
case 'e':
return v2SpecNamesFirstChar_e;
case 'f':
return v2SpecNamesFirstChar_f;
case 'g':
return v2SpecNamesFirstChar_g;
case 'h':
return v2SpecNamesFirstChar_h;
case 'i':
return v2SpecNamesFirstChar_i;
case 'j':
return v2SpecNamesFirstChar_j;
case 'k':
return v2SpecNamesFirstChar_k;
case 'l':
return v2SpecNamesFirstChar_l;
case 'm':
return v2SpecNamesFirstChar_m;
case 'n':
return v2SpecNamesFirstChar_n;
case 'o':
return v2SpecNamesFirstChar_o;
case 'p':
return v2SpecNamesFirstChar_p;
case 'q':
return v2SpecNamesFirstChar_q;
case 'r':
return v2SpecNamesFirstChar_r;
case 's':
return v2SpecNamesFirstChar_s;
case 't':
return v2SpecNamesFirstChar_t;
case 'u':
return v2SpecNamesFirstChar_u;
case 'v':
return v2SpecNamesFirstChar_v;
case 'w':
return v2SpecNamesFirstChar_w;
case 'x':
return v2SpecNamesFirstChar_x;
case 'y':
return v2SpecNamesFirstChar_y;
case 'z':
return v2SpecNamesFirstChar_z;
default:
return const [];
}
}