| 1979 | */ |
| 1980 | |
| 1981 | char **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() |
no test coverage detected