| 37 | { |
| 38 | |
| 39 | std::string replaceNonTabs(std::string_view _utf8Input, char _filler) |
| 40 | { |
| 41 | std::string output; |
| 42 | for (char const c: _utf8Input) |
| 43 | if ((c & 0xc0) != 0x80) |
| 44 | output.push_back(c == '\t' ? '\t' : _filler); |
| 45 | return output; |
| 46 | } |
| 47 | |
| 48 | } |
| 49 |