-
-
Save bendc/1e6af8f2d8027f2965da to your computer and use it in GitHub Desktop.
const letters = (() => { | |
const caps = [...Array(26)].map((val, i) => String.fromCharCode(i + 65)); | |
return caps.concat(caps.map(letter => letter.toLowerCase())); | |
})(); |
std::map<std::string,int> cc_map {{"A",0}, {"B",0}, {"C",0}, {"D",0}, {"E",0}, {"F",0}, {"G",0}, {"H",0}, {"I",0}, {"J",0}, {"K",0}, {"L",0}, {"M",0},
{"N",0}, {"O",0}, {"P",0}, {"Q",0}, {"R",0}, {"S",0}, {"T",0}, {"U",0}, {"V",0}, {"W",0}, {"X",0}, {"Y",0}, {"Z",0},
{"a",0}, {"b",0}, {"c",0}, {"d",0}, {"e",0}, {"f",0}, {"g",0}, {"h",0}, {"i",0}, {"j",0}, {"k",0}, {"l",0}, {"m",0},
{"n",0}, {"o",0}, {"p",0}, {"q",0}, {"r",0}, {"s",0}, {"t",0}, {"u",0}, {"v",0}, {"w",0}, {"x",0}, {"y",0}, {"z",0},
{"0",0},{"1",0},{"2",0},{"3",0},{"4",0},{"5",0},{"6",0},{"7",0},{"8",0},{"9",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}, {"]",0},
{"{",0}, {"}",0}, {"~",0},};
leaving this here in case anyone else needs this.
["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", "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"]
exactly what I needed Thx
["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", "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"]
W mans
Legend
In case anyone needs the full set of lower and upper case Latin characters (all of the various accented versions), built from this table:
const lowercaseString = "abcdefghijklmnopqrstuvwxyzàáâãäåæçèéêëìíîïðñòóôõöøùúûüýþÿāăąćĉċčďđēĕėęěĝğġģĥħĩīĭįıijĵķĺļľŀłńņňŋōŏőœŕŗřśŝşšţťŧũūŭůűųŵŷźżžƃƅƈƌƒƙơƣƥƨƭưƴƶƹƽdžljnjǎǐǒǔǖǘǚǜǟǡǣǥǧǩǫǭǯdzǵǻǽǿȁȃȅȇȉȋȍȏȑȓȕȗɓɔɗɘəɛɠɣɨɩɯɲɵʃʈʊʋʒḁḃḅḇḉḋḍḏḑḓḕḗḙḛḝḟḡḣḥḧḩḫḭḯḱḳḵḷḹḻḽḿṁṃṅṇṉṋṍṏṑṓṕṗṙṛṝṟṡṣṥṧṩṫṭṯṱṳṵṷṹṻṽṿẁẃẅẇẉẋẍẏẑẓẕạảấầẩẫậắằẳẵặẹẻẽếềểễệỉịọỏốồổỗộớờởỡợụủứừửữựỳỵỷỹ";
const lowercaseChars = [...lowercaseString];
const uppercaseChars = [...lowercaseString.toLocaleUpperCase()];
Upper and lowercase for c:
{'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', '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'}
interesting thanks