| 1004 | } |
| 1005 | |
| 1006 | static size_t text_bom_length(const char *data, size_t len) { |
| 1007 | static const unsigned char bom[] = {0xefU, 0xbbU, 0xbfU}; |
| 1008 | return len >= sizeof(bom) && memcmp(data, bom, sizeof(bom)) == 0 ? sizeof(bom) : 0U; |
| 1009 | } |
| 1010 | |
| 1011 | static int text_validate_markers(const char *begin_marker, const char *end_marker, |
| 1012 | size_t *begin_len, size_t *end_len) { |
no outgoing calls
no test coverage detected