31 for (pch0 = szValue;; pch0 = pch1 + 1)
43#define DEBUGSTR_HEX "0123456789ABCDEF"
44#define DEBUGSTR_QUOTE_TAIL_LEN 8
67 for (;
cchBuf > DEBUGSTR_QUOTE_TAIL_LEN; ++pchSrc)
71 case '\'':
case '\"':
case '\\':
case '\t':
case '\r':
case '\n':
75 else if (*pchSrc ==
'\r')
77 else if (*pchSrc ==
'\n')
94 *
pch++ = DEBUGSTR_HEX[(*pchSrc >> 4) & 0xF];
95 *
pch++ = DEBUGSTR_HEX[*pchSrc & 0xF];
103 if (
cchBuf <= DEBUGSTR_QUOTE_TAIL_LEN)
121 PCWCH pchSrc = pszSrc;
135 for (;
cchBuf > DEBUGSTR_QUOTE_TAIL_LEN; ++pchSrc)
139 case L'\'':
case L'\"':
case L'\\':
case L'\t':
case L'\r':
case L'\n':
141 if (*pchSrc ==
L'\t')
143 else if (*pchSrc ==
L'\r')
145 else if (*pchSrc ==
L'\n')
153 if (*pchSrc >=
L' ' && *pchSrc < 0x100)
162 *
pch++ = DEBUGSTR_HEX[(*pchSrc >> 12) & 0xF];
163 *
pch++ = DEBUGSTR_HEX[(*pchSrc >> 8) & 0xF];
164 *
pch++ = DEBUGSTR_HEX[(*pchSrc >> 4) & 0xF];
165 *
pch++ = DEBUGSTR_HEX[*pchSrc & 0xF];
173 if (
cchBuf <= DEBUGSTR_QUOTE_TAIL_LEN)
184#define DEBUGSTR_NUM_BUFFS 5
185#define DEBUGSTR_BUFF_SIZE MAX_PATH
188debugstr_next_buff(
void)
190 static CHAR s_bufs[DEBUGSTR_NUM_BUFFS][DEBUGSTR_BUFF_SIZE];
191 static SIZE_T s_index = 0;
193 s_index = (s_index + 1) %
_countof(s_bufs);
200 return debugstr_quote_a(debugstr_next_buff(), DEBUGSTR_BUFF_SIZE, pszA);
206 return debugstr_quote_w(debugstr_next_buff(), DEBUGSTR_BUFF_SIZE, pszW);
217 ptr = debugstr_next_buff();
226 "{%08x-%04x-%04x-%02x%02x-%02x%02x%02x%02x%02x%02x}",
227 id->Data1,
id->Data2,
id->Data3,
228 id->Data4[0],
id->Data4[1],
id->Data4[2],
id->Data4[3],
229 id->Data4[4],
id->Data4[5],
id->Data4[6],
id->Data4[7]);
char * strchr(const char *String, int ch)
#define GetEnvironmentVariableA(x, y, z)
DWORD WINAPI GetLastError(void)
#define IntIsDebugChannelEnabled(channel)