| 49 | } |
| 50 | |
| 51 | std::vector<std::string> utf8_codepoints(std::string_view text) { |
| 52 | std::vector<std::string> out; |
| 53 | for (size_t offset = 0; offset < text.size();) { |
| 54 | const size_t start = offset; |
| 55 | (void) next_utf8_codepoint(text, offset); |
| 56 | out.emplace_back(text.substr(start, offset - start)); |
| 57 | } |
| 58 | return out; |
| 59 | } |
| 60 | |
| 61 | std::string normalize_text(std::string_view text) { |
| 62 | const std::string space = "\xE2\x96\x81"; |
no test coverage detected