Lines Matching defs:pszString
180 RTDECL(int) RTUuidToStr(PCRTUUID pUuid, char *pszString, size_t cchString)
187 AssertPtrReturn(pszString, VERR_INVALID_PARAMETER);
205 pszString[ 0] = g_achDigits[(u32TimeLow >> 28)/*& 0xf*/];
206 pszString[ 1] = g_achDigits[(u32TimeLow >> 24) & 0xf];
207 pszString[ 2] = g_achDigits[(u32TimeLow >> 20) & 0xf];
208 pszString[ 3] = g_achDigits[(u32TimeLow >> 16) & 0xf];
209 pszString[ 4] = g_achDigits[(u32TimeLow >> 12) & 0xf];
210 pszString[ 5] = g_achDigits[(u32TimeLow >> 8) & 0xf];
211 pszString[ 6] = g_achDigits[(u32TimeLow >> 4) & 0xf];
212 pszString[ 7] = g_achDigits[(u32TimeLow/*>>0*/)& 0xf];
213 pszString[ 8] = '-';
215 pszString[ 9] = g_achDigits[(u >> 12)/*& 0xf*/];
216 pszString[10] = g_achDigits[(u >> 8) & 0xf];
217 pszString[11] = g_achDigits[(u >> 4) & 0xf];
218 pszString[12] = g_achDigits[(u/*>>0*/)& 0xf];
219 pszString[13] = '-';
221 pszString[14] = g_achDigits[(u >> 12)/*& 0xf*/];
222 pszString[15] = g_achDigits[(u >> 8) & 0xf];
223 pszString[16] = g_achDigits[(u >> 4) & 0xf];
224 pszString[17] = g_achDigits[(u/*>>0*/)& 0xf];
225 pszString[18] = '-';
226 pszString[19] = g_achDigits[pUuid->Gen.u8ClockSeqHiAndReserved >> 4];
227 pszString[20] = g_achDigits[pUuid->Gen.u8ClockSeqHiAndReserved & 0xf];
228 pszString[21] = g_achDigits[pUuid->Gen.u8ClockSeqLow >> 4];
229 pszString[22] = g_achDigits[pUuid->Gen.u8ClockSeqLow & 0xf];
230 pszString[23] = '-';
231 pszString[24] = g_achDigits[pUuid->Gen.au8Node[0] >> 4];
232 pszString[25] = g_achDigits[pUuid->Gen.au8Node[0] & 0xf];
233 pszString[26] = g_achDigits[pUuid->Gen.au8Node[1] >> 4];
234 pszString[27] = g_achDigits[pUuid->Gen.au8Node[1] & 0xf];
235 pszString[28] = g_achDigits[pUuid->Gen.au8Node[2] >> 4];
236 pszString[29] = g_achDigits[pUuid->Gen.au8Node[2] & 0xf];
237 pszString[30] = g_achDigits[pUuid->Gen.au8Node[3] >> 4];
238 pszString[31] = g_achDigits[pUuid->Gen.au8Node[3] & 0xf];
239 pszString[32] = g_achDigits[pUuid->Gen.au8Node[4] >> 4];
240 pszString[33] = g_achDigits[pUuid->Gen.au8Node[4] & 0xf];
241 pszString[34] = g_achDigits[pUuid->Gen.au8Node[5] >> 4];
242 pszString[35] = g_achDigits[pUuid->Gen.au8Node[5] & 0xf];
243 pszString[36] = '\0';
250 RTDECL(int) RTUuidFromStr(PRTUUID pUuid, const char *pszString)
258 AssertPtrReturn(pszString, VERR_INVALID_PARAMETER);
260 fHaveBraces = pszString[0] == '{';
261 pszString += fHaveBraces;
265 MY_CHECK(MY_ISXDIGIT(pszString[ 0]));
266 MY_CHECK(MY_ISXDIGIT(pszString[ 1]));
267 MY_CHECK(MY_ISXDIGIT(pszString[ 2]));
268 MY_CHECK(MY_ISXDIGIT(pszString[ 3]));
269 MY_CHECK(MY_ISXDIGIT(pszString[ 4]));
270 MY_CHECK(MY_ISXDIGIT(pszString[ 5]));
271 MY_CHECK(MY_ISXDIGIT(pszString[ 6]));
272 MY_CHECK(MY_ISXDIGIT(pszString[ 7]));
273 MY_CHECK(pszString[ 8] == '-');
274 MY_CHECK(MY_ISXDIGIT(pszString[ 9]));
275 MY_CHECK(MY_ISXDIGIT(pszString[10]));
276 MY_CHECK(MY_ISXDIGIT(pszString[11]));
277 MY_CHECK(MY_ISXDIGIT(pszString[12]));
278 MY_CHECK(pszString[13] == '-');
279 MY_CHECK(MY_ISXDIGIT(pszString[14]));
280 MY_CHECK(MY_ISXDIGIT(pszString[15]));
281 MY_CHECK(MY_ISXDIGIT(pszString[16]));
282 MY_CHECK(MY_ISXDIGIT(pszString[17]));
283 MY_CHECK(pszString[18] == '-');
284 MY_CHECK(MY_ISXDIGIT(pszString[19]));
285 MY_CHECK(MY_ISXDIGIT(pszString[20]));
286 MY_CHECK(MY_ISXDIGIT(pszString[21]));
287 MY_CHECK(MY_ISXDIGIT(pszString[22]));
288 MY_CHECK(pszString[23] == '-');
289 MY_CHECK(MY_ISXDIGIT(pszString[24]));
290 MY_CHECK(MY_ISXDIGIT(pszString[25]));
291 MY_CHECK(MY_ISXDIGIT(pszString[26]));
292 MY_CHECK(MY_ISXDIGIT(pszString[27]));
293 MY_CHECK(MY_ISXDIGIT(pszString[28]));
294 MY_CHECK(MY_ISXDIGIT(pszString[29]));
295 MY_CHECK(MY_ISXDIGIT(pszString[30]));
296 MY_CHECK(MY_ISXDIGIT(pszString[31]));
297 MY_CHECK(MY_ISXDIGIT(pszString[32]));
298 MY_CHECK(MY_ISXDIGIT(pszString[33]));
299 MY_CHECK(MY_ISXDIGIT(pszString[34]));
300 MY_CHECK(MY_ISXDIGIT(pszString[35]));
302 MY_CHECK(pszString[36] == '}');
303 MY_CHECK(!pszString[36 + fHaveBraces]);
311 pUuid->Gen.u32TimeLow = RT_LE2H_U32((uint32_t)MY_TONUM(pszString[ 0]) << 28
312 | (uint32_t)MY_TONUM(pszString[ 1]) << 24
313 | (uint32_t)MY_TONUM(pszString[ 2]) << 20
314 | (uint32_t)MY_TONUM(pszString[ 3]) << 16
315 | (uint32_t)MY_TONUM(pszString[ 4]) << 12
316 | (uint32_t)MY_TONUM(pszString[ 5]) << 8
317 | (uint32_t)MY_TONUM(pszString[ 6]) << 4
318 | (uint32_t)MY_TONUM(pszString[ 7]));
319 pUuid->Gen.u16TimeMid = RT_LE2H_U16((uint16_t)MY_TONUM(pszString[ 9]) << 12
320 | (uint16_t)MY_TONUM(pszString[10]) << 8
321 | (uint16_t)MY_TONUM(pszString[11]) << 4
322 | (uint16_t)MY_TONUM(pszString[12]));
324 (uint16_t)MY_TONUM(pszString[14]) << 12
325 | (uint16_t)MY_TONUM(pszString[15]) << 8
326 | (uint16_t)MY_TONUM(pszString[16]) << 4
327 | (uint16_t)MY_TONUM(pszString[17]));
329 (uint16_t)MY_TONUM(pszString[19]) << 4
330 | (uint16_t)MY_TONUM(pszString[20]);
332 (uint16_t)MY_TONUM(pszString[21]) << 4
333 | (uint16_t)MY_TONUM(pszString[22]);
334 pUuid->Gen.au8Node[0] = (uint8_t)MY_TONUM(pszString[24]) << 4
335 | (uint8_t)MY_TONUM(pszString[25]);
336 pUuid->Gen.au8Node[1] = (uint8_t)MY_TONUM(pszString[26]) << 4
337 | (uint8_t)MY_TONUM(pszString[27]);
338 pUuid->Gen.au8Node[2] = (uint8_t)MY_TONUM(pszString[28]) << 4
339 | (uint8_t)MY_TONUM(pszString[29]);
340 pUuid->Gen.au8Node[3] = (uint8_t)MY_TONUM(pszString[30]) << 4
341 | (uint8_t)MY_TONUM(pszString[31]);
342 pUuid->Gen.au8Node[4] = (uint8_t)MY_TONUM(pszString[32]) << 4
343 | (uint8_t)MY_TONUM(pszString[33]);
344 pUuid->Gen.au8Node[5] = (uint8_t)MY_TONUM(pszString[34]) << 4
345 | (uint8_t)MY_TONUM(pszString[35]);