| 3426 | } |
| 3427 | |
| 3428 | AP_DECLARE(int) ap_array_str_index(const apr_array_header_t *array, |
| 3429 | const char *s, |
| 3430 | int start) |
| 3431 | { |
| 3432 | if (start >= 0) { |
| 3433 | int i; |
| 3434 | |
| 3435 | for (i = start; i < array->nelts; i++) { |
| 3436 | const char *p = APR_ARRAY_IDX(array, i, const char *); |
| 3437 | if (!strcmp(p, s)) { |
| 3438 | return i; |
| 3439 | } |
| 3440 | } |
| 3441 | } |
| 3442 | |
| 3443 | return -1; |
| 3444 | } |
| 3445 | |
| 3446 | AP_DECLARE(int) ap_array_str_contains(const apr_array_header_t *array, |
| 3447 | const char *s) |
no outgoing calls
no test coverage detected