| 71 | /* ── Names ───────────────────────────────────────────────────────── */ |
| 72 | |
| 73 | static bool php_eq_nocase(const char *a, size_t an, const char *b, size_t bn) { |
| 74 | if (an != bn) { |
| 75 | return false; |
| 76 | } |
| 77 | for (size_t i = 0; i < an; i++) { |
| 78 | if (tolower((unsigned char)a[i]) != tolower((unsigned char)b[i])) { |
| 79 | return false; |
| 80 | } |
| 81 | } |
| 82 | return true; |
| 83 | } |
| 84 | |
| 85 | /* out[*w..] += s[0, n); false when it does not fit. */ |
| 86 | static bool php_put(char *out, size_t cap, size_t *w, const char *s, size_t n) { |
no outgoing calls
no test coverage detected