Bazaar developer reference

GetGUIDSegment(const char *, uint *, T &)

Defined in
CvGameCoreUtils.cpp, line 1472
Not a hook point
template

Code

1471template <class T>1472bool GetGUIDSegment(const char* pszGUID, uint* puiIndex, T& kDest)1473{1474	*puiIndex = SkipGUIDSeparators(pszGUID, *puiIndex);14751476	kDest = 0;1477	UINT uiLength = strlen(pszGUID);1478	if(*puiIndex < uiLength)1479	{1480		UINT uiDigitCount = sizeof(T) * 2;1481		do1482		{1483			UINT uiValue = 0;1484			if(GetHexDigitValue(pszGUID[*puiIndex], uiValue))1485				kDest = (kDest * 16) + uiValue;1486			else1487				return false;1488			*puiIndex += 1;1489		}1490		while(*puiIndex < uiLength  && --uiDigitCount);14911492		return true;1493	}1494	else1495		return false;1496}

Calls