Lines Matching refs:pwszString

352 RTDECL(int)  RTUuidToUtf16(PCRTUUID pUuid, PRTUTF16 pwszString, size_t cwcString)
359 AssertPtrReturn(pwszString, VERR_INVALID_PARAMETER);
377 pwszString[ 0] = g_achDigits[(u32TimeLow >> 28)/*& 0xf*/];
378 pwszString[ 1] = g_achDigits[(u32TimeLow >> 24) & 0xf];
379 pwszString[ 2] = g_achDigits[(u32TimeLow >> 20) & 0xf];
380 pwszString[ 3] = g_achDigits[(u32TimeLow >> 16) & 0xf];
381 pwszString[ 4] = g_achDigits[(u32TimeLow >> 12) & 0xf];
382 pwszString[ 5] = g_achDigits[(u32TimeLow >> 8) & 0xf];
383 pwszString[ 6] = g_achDigits[(u32TimeLow >> 4) & 0xf];
384 pwszString[ 7] = g_achDigits[(u32TimeLow/*>>0*/)& 0xf];
385 pwszString[ 8] = '-';
387 pwszString[ 9] = g_achDigits[(u >> 12)/*& 0xf*/];
388 pwszString[10] = g_achDigits[(u >> 8) & 0xf];
389 pwszString[11] = g_achDigits[(u >> 4) & 0xf];
390 pwszString[12] = g_achDigits[(u/*>>0*/)& 0xf];
391 pwszString[13] = '-';
393 pwszString[14] = g_achDigits[(u >> 12)/*& 0xf*/];
394 pwszString[15] = g_achDigits[(u >> 8) & 0xf];
395 pwszString[16] = g_achDigits[(u >> 4) & 0xf];
396 pwszString[17] = g_achDigits[(u/*>>0*/)& 0xf];
397 pwszString[18] = '-';
398 pwszString[19] = g_achDigits[pUuid->Gen.u8ClockSeqHiAndReserved >> 4];
399 pwszString[20] = g_achDigits[pUuid->Gen.u8ClockSeqHiAndReserved & 0xf];
400 pwszString[21] = g_achDigits[pUuid->Gen.u8ClockSeqLow >> 4];
401 pwszString[22] = g_achDigits[pUuid->Gen.u8ClockSeqLow & 0xf];
402 pwszString[23] = '-';
403 pwszString[24] = g_achDigits[pUuid->Gen.au8Node[0] >> 4];
404 pwszString[25] = g_achDigits[pUuid->Gen.au8Node[0] & 0xf];
405 pwszString[26] = g_achDigits[pUuid->Gen.au8Node[1] >> 4];
406 pwszString[27] = g_achDigits[pUuid->Gen.au8Node[1] & 0xf];
407 pwszString[28] = g_achDigits[pUuid->Gen.au8Node[2] >> 4];
408 pwszString[29] = g_achDigits[pUuid->Gen.au8Node[2] & 0xf];
409 pwszString[30] = g_achDigits[pUuid->Gen.au8Node[3] >> 4];
410 pwszString[31] = g_achDigits[pUuid->Gen.au8Node[3] & 0xf];
411 pwszString[32] = g_achDigits[pUuid->Gen.au8Node[4] >> 4];
412 pwszString[33] = g_achDigits[pUuid->Gen.au8Node[4] & 0xf];
413 pwszString[34] = g_achDigits[pUuid->Gen.au8Node[5] >> 4];
414 pwszString[35] = g_achDigits[pUuid->Gen.au8Node[5] & 0xf];
415 pwszString[36] = '\0';
422 RTDECL(int) RTUuidFromUtf16(PRTUUID pUuid, PCRTUTF16 pwszString)
430 AssertPtrReturn(pwszString, VERR_INVALID_PARAMETER);
432 fHaveBraces = pwszString[0] == '{';
433 pwszString += fHaveBraces;
437 MY_CHECK(MY_ISXDIGIT(pwszString[ 0]));
438 MY_CHECK(MY_ISXDIGIT(pwszString[ 1]));
439 MY_CHECK(MY_ISXDIGIT(pwszString[ 2]));
440 MY_CHECK(MY_ISXDIGIT(pwszString[ 3]));
441 MY_CHECK(MY_ISXDIGIT(pwszString[ 4]));
442 MY_CHECK(MY_ISXDIGIT(pwszString[ 5]));
443 MY_CHECK(MY_ISXDIGIT(pwszString[ 6]));
444 MY_CHECK(MY_ISXDIGIT(pwszString[ 7]));
445 MY_CHECK(pwszString[ 8] == '-');
446 MY_CHECK(MY_ISXDIGIT(pwszString[ 9]));
447 MY_CHECK(MY_ISXDIGIT(pwszString[10]));
448 MY_CHECK(MY_ISXDIGIT(pwszString[11]));
449 MY_CHECK(MY_ISXDIGIT(pwszString[12]));
450 MY_CHECK(pwszString[13] == '-');
451 MY_CHECK(MY_ISXDIGIT(pwszString[14]));
452 MY_CHECK(MY_ISXDIGIT(pwszString[15]));
453 MY_CHECK(MY_ISXDIGIT(pwszString[16]));
454 MY_CHECK(MY_ISXDIGIT(pwszString[17]));
455 MY_CHECK(pwszString[18] == '-');
456 MY_CHECK(MY_ISXDIGIT(pwszString[19]));
457 MY_CHECK(MY_ISXDIGIT(pwszString[20]));
458 MY_CHECK(MY_ISXDIGIT(pwszString[21]));
459 MY_CHECK(MY_ISXDIGIT(pwszString[22]));
460 MY_CHECK(pwszString[23] == '-');
461 MY_CHECK(MY_ISXDIGIT(pwszString[24]));
462 MY_CHECK(MY_ISXDIGIT(pwszString[25]));
463 MY_CHECK(MY_ISXDIGIT(pwszString[26]));
464 MY_CHECK(MY_ISXDIGIT(pwszString[27]));
465 MY_CHECK(MY_ISXDIGIT(pwszString[28]));
466 MY_CHECK(MY_ISXDIGIT(pwszString[29]));
467 MY_CHECK(MY_ISXDIGIT(pwszString[30]));
468 MY_CHECK(MY_ISXDIGIT(pwszString[31]));
469 MY_CHECK(MY_ISXDIGIT(pwszString[32]));
470 MY_CHECK(MY_ISXDIGIT(pwszString[33]));
471 MY_CHECK(MY_ISXDIGIT(pwszString[34]));
472 MY_CHECK(MY_ISXDIGIT(pwszString[35]));
474 MY_CHECK(pwszString[36] == '}');
475 MY_CHECK(!pwszString[36 + fHaveBraces]);
483 pUuid->Gen.u32TimeLow = RT_LE2H_U32((uint32_t)MY_TONUM(pwszString[ 0]) << 28
484 | (uint32_t)MY_TONUM(pwszString[ 1]) << 24
485 | (uint32_t)MY_TONUM(pwszString[ 2]) << 20
486 | (uint32_t)MY_TONUM(pwszString[ 3]) << 16
487 | (uint32_t)MY_TONUM(pwszString[ 4]) << 12
488 | (uint32_t)MY_TONUM(pwszString[ 5]) << 8
489 | (uint32_t)MY_TONUM(pwszString[ 6]) << 4
490 | (uint32_t)MY_TONUM(pwszString[ 7]));
491 pUuid->Gen.u16TimeMid = RT_LE2H_U16((uint16_t)MY_TONUM(pwszString[ 9]) << 12
492 | (uint16_t)MY_TONUM(pwszString[10]) << 8
493 | (uint16_t)MY_TONUM(pwszString[11]) << 4
494 | (uint16_t)MY_TONUM(pwszString[12]));
496 (uint16_t)MY_TONUM(pwszString[14]) << 12
497 | (uint16_t)MY_TONUM(pwszString[15]) << 8
498 | (uint16_t)MY_TONUM(pwszString[16]) << 4
499 | (uint16_t)MY_TONUM(pwszString[17]));
501 (uint16_t)MY_TONUM(pwszString[19]) << 4
502 | (uint16_t)MY_TONUM(pwszString[20]);
504 (uint16_t)MY_TONUM(pwszString[21]) << 4
505 | (uint16_t)MY_TONUM(pwszString[22]);
506 pUuid->Gen.au8Node[0] = (uint8_t)MY_TONUM(pwszString[24]) << 4
507 | (uint8_t)MY_TONUM(pwszString[25]);
508 pUuid->Gen.au8Node[1] = (uint8_t)MY_TONUM(pwszString[26]) << 4
509 | (uint8_t)MY_TONUM(pwszString[27]);
510 pUuid->Gen.au8Node[2] = (uint8_t)MY_TONUM(pwszString[28]) << 4
511 | (uint8_t)MY_TONUM(pwszString[29]);
512 pUuid->Gen.au8Node[3] = (uint8_t)MY_TONUM(pwszString[30]) << 4
513 | (uint8_t)MY_TONUM(pwszString[31]);
514 pUuid->Gen.au8Node[4] = (uint8_t)MY_TONUM(pwszString[32]) << 4
515 | (uint8_t)MY_TONUM(pwszString[33]);
516 pUuid->Gen.au8Node[5] = (uint8_t)MY_TONUM(pwszString[34]) << 4
517 | (uint8_t)MY_TONUM(pwszString[35]);