Lines Matching refs:guid
50 string GetGuidPart(const string& guid, int index) in GetGuidPart() argument
52 assert((guid.length() == 36) && "No GUID or wrong format!"); in GetGuidPart()
55 if (index == 0) return string(guid.c_str(), 8); in GetGuidPart()
56 if (index == 1) return string(guid.c_str() + 9, 4); in GetGuidPart()
57 if (index == 2) return string(guid.c_str() + 14, 4); in GetGuidPart()
58 if (index == 3) return string(guid.c_str() + 19, 4); in GetGuidPart()
59 if (index == 4) return string(guid.c_str() + 24, 12); in GetGuidPart()
91 string ConvertGuid(const string& guid) in ConvertGuid() argument
95 string part = GetGuidPart(guid, 0); in ConvertGuid()
98 part = GetGuidPart(guid, 1); in ConvertGuid()
101 part = GetGuidPart(guid, 2); in ConvertGuid()
104 part = GetGuidPart(guid, 3); in ConvertGuid()
108 part = GetGuidPart(guid, 4); in ConvertGuid()