| 799 | /* ── Pure helpers ─────────────────────────────────────────────── */ |
| 800 | |
| 801 | bool cbm_http_path_match(const char *str, const char *pattern) { |
| 802 | if (!str || !pattern) |
| 803 | return false; |
| 804 | size_t plen = strlen(pattern); |
| 805 | if (plen > 0 && pattern[plen - 1] == '*') |
| 806 | return strncmp(str, pattern, plen - 1) == 0; |
| 807 | return strcmp(str, pattern) == 0; |
| 808 | } |
| 809 | |
| 810 | static int hex_val(char ch) { |
| 811 | if (ch >= '0' && ch <= '9') |
no outgoing calls
no test coverage detected