| 717 | */ |
| 718 | |
| 719 | int CSLPartialFindString(CSLConstList papszHaystack, const char *pszNeedle) |
| 720 | { |
| 721 | if (papszHaystack == nullptr || pszNeedle == nullptr) |
| 722 | return -1; |
| 723 | |
| 724 | for (int i = 0; papszHaystack[i] != nullptr; ++i) |
| 725 | { |
| 726 | if (strstr(papszHaystack[i], pszNeedle)) |
| 727 | return i; |
| 728 | } |
| 729 | |
| 730 | return -1; |
| 731 | } |
| 732 | |
| 733 | /********************************************************************** |
| 734 | * CSLTokenizeString() |
no outgoing calls
no test coverage detected