| 239 | } |
| 240 | |
| 241 | static CPLString OGRAPISpyGetString(const char *pszStr) |
| 242 | { |
| 243 | if (pszStr == nullptr) |
| 244 | return "None"; |
| 245 | CPLString osRet = "'"; |
| 246 | while (*pszStr) |
| 247 | { |
| 248 | if (*pszStr == '\'') |
| 249 | osRet += "\\'"; |
| 250 | else if (*pszStr == '\\') |
| 251 | osRet += "\\\\"; |
| 252 | else |
| 253 | osRet += *pszStr; |
| 254 | pszStr++; |
| 255 | } |
| 256 | osRet += "'"; |
| 257 | return osRet; |
| 258 | } |
| 259 | |
| 260 | static CPLString OGRAPISpyGetDSVar(GDALDatasetH hDS) |
| 261 | { |
no outgoing calls
no test coverage detected