MCPcopy Create free account
hub / github.com/OSGeo/gdal / CSLPartialFindString

Function CSLPartialFindString

port/cpl_string.cpp:719–731  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

717 */
718
719int 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()

Callers 7

CreateCopyMethod · 0.85
PartialFindStringFunction · 0.85
NITFCreateExFunction · 0.85
CreateCopyMethod · 0.85
FindChangePatternFunction · 0.85
GotoMetadataItemMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected