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

Function OGRAPISpyGetString

ogr/ograpispy.cpp:241–258  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

239}
240
241static 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
260static CPLString OGRAPISpyGetDSVar(GDALDatasetH hDS)
261{

Callers 15

OGRAPISpyOpenFunction · 0.85
OGRAPISpy_DS_ExecuteSQLFunction · 0.85
OGRAPISpy_DS_CreateLayerFunction · 0.85
OGRAPISpyDumpFeatureFunction · 0.85
OGRAPISpyDumpFieldDefnFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected