Lines Matching refs:cchWidth

71 static int rtStrFormatNumber(char *psz, KSIZE64 ullValue, unsigned int uiBase, signed int cchWidth, signed int cchPrecision, unsigned int fFlags);
146 * @param cchWidth Width.
150 RTDECL(int) RTStrFormatNumber(char *psz, uint64_t u64Value, unsigned int uiBase, signed int cchWidth, signed int cchPrecision,
153 return rtStrFormatNumber(psz, *(KSIZE64 *)(void *)&u64Value, uiBase, cchWidth, cchPrecision, fFlags);
166 * @param cchWidth Width
170 static int rtStrFormatNumber(char *psz, KSIZE64 ullValue, unsigned int uiBase, signed int cchWidth, signed int cchPrecision,
257 cchWidth -= i + cchValue;
259 while (--cchWidth >= 0 && i < cchMax)
265 else if (!(fFlags & RTSTR_F_LEFT) && cchWidth > 0)
267 AssertStmt(cchWidth < cchMax, cchWidth = cchMax - 1);
269 psz[cchWidth + j] = psz[j];
270 for (j = 0; j < cchWidth; j++)
272 i += cchWidth;
340 while (--cchWidth >= 0)
387 int cchWidth = -1;
411 for (cchWidth = 0; ISDIGIT(*pszFormat); pszFormat++)
413 cchWidth *= 10;
414 cchWidth += *pszFormat - '0';
421 cchWidth = va_arg(args, int);
422 if (cchWidth < 0)
424 cchWidth = -cchWidth;
525 while (--cchWidth > 0)
531 while (--cchWidth > 0)
552 while (--cchWidth >= cchStr)
554 cchWidth -= cchStr;
569 while (--cchWidth >= 0)
585 while (--cchWidth >= cchStr)
588 cchWidth -= cchStr;
601 while (--cchWidth >= 0)
613 while (--cchWidth >= cchStr)
618 while (--cchWidth >= cchStr)
653 if (cchWidth < 0)
654 cchWidth = sizeof(char *) * 2;
756 cchNum = RTStrFormatNumber((char *)SSToDS(&achNum), u64Value, uBase, cchWidth, cchPrecision, fFlags);
791 cch += rtstrFormatRt(pfnOutput, pvArgOutput, &pszFormat, &args, cchWidth, cchPrecision, fFlags, chArgSize);
796 cch += rtstrFormatType(pfnOutput, pvArgOutput, &pszFormat, &args, cchWidth, cchPrecision, fFlags, chArgSize);
809 cch += pfnFormat(pvArgFormat, pfnOutput, pvArgOutput, &pszFormat, &args, cchWidth, cchPrecision, fFlags, chArgSize);