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

Function CSLFetchNameValueMultiple

port/cpl_string.cpp:1981–1999  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1979 */
1980
1981char **CSLFetchNameValueMultiple(CSLConstList papszStrList, const char *pszName)
1982{
1983 if (papszStrList == nullptr || pszName == nullptr)
1984 return nullptr;
1985
1986 const size_t nLen = strlen(pszName);
1987 char **papszValues = nullptr;
1988 while (*papszStrList != nullptr)
1989 {
1990 if (EQUALN(*papszStrList, pszName, nLen) &&
1991 ((*papszStrList)[nLen] == '=' || (*papszStrList)[nLen] == ':'))
1992 {
1993 papszValues = CSLAddString(papszValues, (*papszStrList) + nLen + 1);
1994 }
1995 ++papszStrList;
1996 }
1997
1998 return papszValues;
1999}
2000
2001/**********************************************************************
2002 * CSLAddNameValue()

Callers 13

OpenMethod · 0.85
GetPathMethod · 0.85
GDALSimpleWarpRemappingFunction · 0.85
DefaultCopyMetadataMethod · 0.85
NITFCreateExFunction · 0.85
CreateCopyMethod · 0.85
CreateLLMethod · 0.85
CreateMethod · 0.85
WriteMetadataMethod · 0.85
InitializeMethod · 0.85

Calls 1

CSLAddStringFunction · 0.85

Tested by

no test coverage detected