| 157 | |
| 158 | #ifndef EMSCRIPTEN |
| 159 | std::string toLower(const std::string& in) |
| 160 | { |
| 161 | std::locale loc; |
| 162 | std::string out; |
| 163 | |
| 164 | for (auto c: in) { |
| 165 | out.push_back(std::tolower(c, loc)); |
| 166 | } |
| 167 | return out; |
| 168 | } |
| 169 | |
| 170 | void readInput(std::atomic<bool>& run) |
| 171 | { |