The classifier on the first probe_bytes(name) bytes of `content`, as the * pinned inventory calls it. */
| 1374 | /* The classifier on the first probe_bytes(name) bytes of `content`, as the |
| 1375 | * pinned inventory calls it. */ |
| 1376 | static CBMLanguage classify_content(const char *name, const char *content, size_t len) { |
| 1377 | size_t probe = cbm_language_probe_bytes(name); |
| 1378 | size_t head = len < probe ? len : probe; |
| 1379 | return cbm_language_classify(name, (const unsigned char *)content, head, len > head, true); |
| 1380 | } |
| 1381 | |
| 1382 | typedef CBMLanguage (*path_probe_fn)(const char *path); |
| 1383 |
no test coverage detected