Lines Matching refs:psz
49 * @param psz Where to start parsing.
53 static bool TryParseAddress(const char *psz, size_t *pcchAddress, uint64_t *pu64Address)
55 const char *pszStart = psz;
60 if (psz[0] == '0' && (psz[1] == 'x' || psz[1] == 'X'))
61 psz += 2;
67 while (RT_C_IS_XDIGIT(psz[off]))
76 && psz[off] == '\''
77 && RT_C_IS_XDIGIT(psz[off + 1])
78 && RT_C_IS_XDIGIT(psz[off + 2])
79 && RT_C_IS_XDIGIT(psz[off + 3])
80 && RT_C_IS_XDIGIT(psz[off + 4])
81 && RT_C_IS_XDIGIT(psz[off + 5])
82 && RT_C_IS_XDIGIT(psz[off + 6])
83 && RT_C_IS_XDIGIT(psz[off + 7])
84 && RT_C_IS_XDIGIT(psz[off + 8])
85 && !RT_C_IS_XDIGIT(psz[off + 9]);
89 int rc = RTStrToUInt32Ex(psz, NULL, 16, &u32High);
94 rc = RTStrToUInt32Ex(&psz[off + 1], NULL, 16, &u32Low);
105 int rc = RTStrToUInt64Ex(psz, NULL, 16, pu64Address);
112 *pcchAddress = psz + off - pszStart;
174 rc = RTStrmOpen(ValueUnion.psz, "r", &pInput);
176 return RTMsgErrorExit(RTEXITCODE_FAILURE, "Failed to open '%s' for reading: %Rrc", ValueUnion.psz, rc);
233 const char *pszModule = ValueUnion.psz;
353 const char *psz = szLine;
355 while ((ch = *psz) != '\0')
361 && (psz[1] == 'x' || psz[1] == 'X')
362 && TryParseAddress(psz, &cchAddress, &u64Address))
364 && TryParseAddress(psz, &cchAddress, &u64Address))
368 psz += cchAddress;
369 if (pszStart != psz)
370 RTStrmWrite(pOutput, pszStart, psz - pszStart);
371 pszStart = psz;
417 psz++;
420 if (pszStart != psz)
421 RTStrmWrite(pOutput, pszStart, psz - pszStart);