Match a * (single star): match any sequence not containing /. */
| 85 | |
| 86 | /* Match a * (single star): match any sequence not containing /. */ |
| 87 | static bool glob_match_star(const char *pat, const char *str, |
| 88 | int *budget) { // NOLINT(misc-no-recursion) |
| 89 | for (const char *s = str;; s++) { |
| 90 | if (glob_match(pat, s, budget)) { |
| 91 | return true; |
| 92 | } |
| 93 | if (!*s || *s == '/') { |
| 94 | return false; |
| 95 | } |
| 96 | } |
| 97 | } |
| 98 | |
| 99 | /* Match a [...] character class at current position. |
| 100 | * Returns true if matched. Advances *pat_out past the closing ']'. */ |
no test coverage detected