• Home
  • Raw
  • Download

Lines Matching refs:outIx

93 static void outputChar(char c, char *outBuf, int32_t *outIx, int32_t capacity, int32_t indent) {  in outputChar()  argument
104 if (*outIx==0 || /* case 1. */ in outputChar()
105 (c!='\n' && c!=0 && *outIx < capacity && outBuf[(*outIx)-1]=='\n') || /* case 2. */ in outputChar()
106 (c=='\n' && *outIx>=capacity)) /* case 3 */ in outputChar()
110 if (*outIx < capacity) { in outputChar()
111 outBuf[*outIx] = ' '; in outputChar()
113 (*outIx)++; in outputChar()
117 if (*outIx < capacity) { in outputChar()
118 outBuf[*outIx] = c; in outputChar()
124 (*outIx)++; in outputChar()
129 char *outBuf, int32_t *outIx, int32_t capacity) { in outputHexBytes() argument
134 outputChar(c, outBuf, outIx, capacity, 0); in outputHexBytes()
139 static void outputPtrBytes(void *val, char *outBuf, int32_t *outIx, int32_t capacity) { in outputPtrBytes() argument
153 outputHexBytes(*p, 2, outBuf, outIx, capacity); in outputPtrBytes()
158 static void outputString(const char *s, char *outBuf, int32_t *outIx, int32_t capacity, int32_t ind… in outputString() argument
166 outputChar(c, outBuf, outIx, capacity, indent); in outputString()
173 char *outBuf, int32_t *outIx, int32_t capacity, int32_t indent) { in outputUString() argument
177 outputString(NULL, outBuf, outIx, capacity, indent); in outputUString()
183 outputHexBytes(c, 4, outBuf, outIx, capacity); in outputUString()
184 outputChar(' ', outBuf, outIx, capacity, indent); in outputUString()
193 int32_t outIx = 0; in utrace_vformat() local
207 outputChar(fmtC, outBuf, &outIx, capacity, indent); in utrace_vformat()
225 outputChar(c, outBuf, &outIx, capacity, indent); in utrace_vformat()
231 outputString((const char *)ptrArg, outBuf, &outIx, capacity, indent); in utrace_vformat()
238 outputUString((const UChar *)ptrArg, intArg, outBuf, &outIx, capacity, indent); in utrace_vformat()
244 outputHexBytes(intArg, 2, outBuf, &outIx, capacity); in utrace_vformat()
250 outputHexBytes(intArg, 4, outBuf, &outIx, capacity); in utrace_vformat()
256 outputHexBytes(intArg, 8, outBuf, &outIx, capacity); in utrace_vformat()
262 outputHexBytes(longArg, 16, outBuf, &outIx, capacity); in utrace_vformat()
268 outputPtrBytes(ptrArg, outBuf, &outIx, capacity); in utrace_vformat()
276 outputChar('%', outBuf, &outIx, capacity, indent); in utrace_vformat()
304 outputString("*NULL* ", outBuf, &outIx, capacity, indent); in utrace_vformat()
326 outputPtrBytes(*ptrPtr, outBuf, &outIx, capacity); in utrace_vformat()
332 outputChar(*i8Ptr, outBuf, &outIx, capacity, indent); in utrace_vformat()
338 outputString((const char *)*ptrPtr, outBuf, &outIx, capacity, indent); in utrace_vformat()
339 outputChar('\n', outBuf, &outIx, capacity, indent); in utrace_vformat()
346 … outputUString((const UChar *)*ptrPtr, -1, outBuf, &outIx, capacity, indent); in utrace_vformat()
347 outputChar('\n', outBuf, &outIx, capacity, indent); in utrace_vformat()
355 outputHexBytes(longArg, charsToOutput, outBuf, &outIx, capacity); in utrace_vformat()
356 outputChar(' ', outBuf, &outIx, capacity, indent); in utrace_vformat()
363 outputChar('[', outBuf, &outIx, capacity, indent); in utrace_vformat()
364 outputHexBytes(vectorLen, 8, outBuf, &outIx, capacity); in utrace_vformat()
365 outputChar(']', outBuf, &outIx, capacity, indent); in utrace_vformat()
375 outputChar(fmtC, outBuf, &outIx, capacity, indent); in utrace_vformat()
378 … outputChar(0, outBuf, &outIx, capacity, indent); /* Make sure that output is null terminated */ in utrace_vformat()
379 … return outIx + 1; /* outIx + 1 because outIx does not increment when outputing final null. */ in utrace_vformat()