| 809 | const char utf8_bom[] = "\357\273\277"; |
| 810 | |
| 811 | int 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 | |
| 820 | void strbuf_utf8_align(struct strbuf *buf, align_type position, unsigned int width, |
| 821 | const char *s) |
no outgoing calls
no test coverage detected