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

Function CSLFindString

port/cpl_string.cpp:654–667  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

652 */
653
654int CSLFindString(CSLConstList papszList, const char *pszTarget)
655
656{
657 if (papszList == nullptr)
658 return -1;
659
660 for (int i = 0; papszList[i] != nullptr; ++i)
661 {
662 if (EQUAL(papszList[i], pszTarget))
663 return i;
664 }
665
666 return -1;
667}
668
669/************************************************************************/
670/* CSLFindStringCaseSensitive() */

Callers 15

FieldCollectorMethod · 0.85
OpenMethod · 0.85
WriteCoreMethod · 0.85
ApplyAttributeValueMethod · 0.85
OpenMethod · 0.85
CheckAddAttrMethod · 0.85
SetMultipleMethod · 0.85
WorkupGenericMethod · 0.85
OpenMethod · 0.85
IsGeoJSONLikeObjectFunction · 0.85

Calls 1

EQUALFunction · 0.50

Tested by 1

TEST_FFunction · 0.68