| 239 | } |
| 240 | |
| 241 | int is_utf8(const char *text) |
| 242 | { |
| 243 | while (*text) { |
| 244 | if (*text == '\n' || *text == '\t' || *text == '\r') { |
| 245 | text++; |
| 246 | continue; |
| 247 | } |
| 248 | utf8_width(&text, NULL); |
| 249 | if (!text) |
| 250 | return 0; |
| 251 | } |
| 252 | return 1; |
| 253 | } |
| 254 | |
| 255 | static void strbuf_add_indented_text(struct strbuf *buf, const char *text, |
| 256 | int indent, int indent2) |
no test coverage detected