The extension after the last '.' of a segment, when it is a code extension. */
| 613 | |
| 614 | /* The extension after the last '.' of a segment, when it is a code extension. */ |
| 615 | static bool has_code_ext(const uint32_t *s, int n) { |
| 616 | int dot = -1; |
| 617 | for (int i = 0; i < n; i++) { |
| 618 | if (s[i] == '.') { |
| 619 | dot = i; |
| 620 | } |
| 621 | } |
| 622 | return dot >= 0 && in_list_lower(s + dot + 1, n - dot - 1, CODE_EXT); |
| 623 | } |
| 624 | |
| 625 | static void path_candidate(const uint32_t *t, int a, int b, candv_t *cv) { |
| 626 | /* s.strip("./~"), split on '/', drop empties */ |
no test coverage detected