| 18 | } |
| 19 | |
| 20 | bool istarts_with(const char *str, const char *prefix) |
| 21 | { |
| 22 | for (; ; str++, prefix++) |
| 23 | if (!*prefix) |
| 24 | return true; |
| 25 | else if (tolower(*str) != tolower(*prefix)) |
| 26 | return false; |
| 27 | } |
| 28 | |
| 29 | bool starts_with_mem(const char *str, size_t len, const char *prefix) |
| 30 | { |
no outgoing calls
no test coverage detected