MCPcopy Create free account
hub / github.com/git/git / skip_utf8_bom

Function skip_utf8_bom

utf8.c:811–818  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

809const char utf8_bom[] = "\357\273\277";
810
811int skip_utf8_bom(char **text, size_t len)
812{
813 if (len < strlen(utf8_bom) ||
814 memcmp(*text, utf8_bom, strlen(utf8_bom)))
815 return 0;
816 *text += strlen(utf8_bom);
817 return 1;
818}
819
820void strbuf_utf8_align(struct strbuf *buf, align_type position, unsigned int width,
821 const char *s)

Callers 1

add_patterns_from_bufferFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected