MCPcopy Index your code
hub / github.com/git/git / is_utf8

Function is_utf8

utf8.c:241–253  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

239}
240
241int 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
255static void strbuf_add_indented_text(struct strbuf *buf, const char *text,
256 int indent, int indent2)

Callers 1

write_zip_entryFunction · 0.85

Calls 1

utf8_widthFunction · 0.85

Tested by

no test coverage detected