MCPcopy Create free account
hub / github.com/Scobalula/Greyhound / GetNextParam

Function GetNextParam

src/External/CascLib/src/CascOpenStorage.cpp:1284–1304  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1282}
1283
1284static LPTSTR GetNextParam(LPTSTR szParamsPtr, bool bMustBeUrl = false)
1285{
1286 LPTSTR szSeparator = NULL;
1287
1288 // The 'szParamsPtr' must be valid
1289 if(szParamsPtr != NULL)
1290 {
1291 // Find the separator ("*") or end of string
1292 if((szSeparator = _tcschr(szParamsPtr, _T(CASC_PARAM_SEPARATOR))) != NULL)
1293 {
1294 // Check for URL pattern, if needed
1295 if(bMustBeUrl && IsUrl(szSeparator + 1) == false)
1296 return NULL;
1297
1298 // Put the EOS there
1299 *szSeparator++ = 0;
1300 }
1301 }
1302
1303 return szSeparator;
1304}
1305
1306static DWORD ParseOpenParams(LPTSTR szParams, PCASC_OPEN_STORAGE_ARGS pArgs)
1307{

Callers 1

ParseOpenParamsFunction · 0.85

Calls 1

IsUrlFunction · 0.85

Tested by

no test coverage detected