Lines Matching defs:fFlags

71 static int rtStrFormatNumber(char *psz, KSIZE64 ullValue, unsigned int uiBase, signed int cchWidth, signed int cchPrecision, unsigned int fFlags);
148 * @param fFlags Flags (NTFS_*).
151 unsigned int fFlags)
153 return rtStrFormatNumber(psz, *(KSIZE64 *)(void *)&u64Value, uiBase, cchWidth, cchPrecision, fFlags);
168 * @param fFlags Flags (NTFS_*).
171 unsigned int fFlags)
185 if (fFlags & RTSTR_F_CAPITAL)
187 if (fFlags & RTSTR_F_LEFT)
188 fFlags &= ~RTSTR_F_ZEROPAD;
189 if ( (fFlags & RTSTR_F_THOUSAND_SEP)
191 || (fFlags & RTSTR_F_ZEROPAD))) /** @todo implement RTSTR_F_ZEROPAD + RTSTR_F_THOUSAND_SEP. */
192 fFlags &= ~RTSTR_F_THOUSAND_SEP;
198 if (ullValue.ulHi || (fFlags & RTSTR_F_64BIT))
201 if ((fFlags & RTSTR_F_VALSIGNED) && (ullValue.ulHi & 0x80000000))
211 ul = (fFlags & RTSTR_F_VALSIGNED) && (ullValue.ulLo & 0x80000000) ? -(int32_t)ullValue.ulLo : ullValue.ulLo;
218 if (fFlags & RTSTR_F_THOUSAND_SEP)
221 fFlags &= ~RTSTR_F_THOUSAND_SEP;
230 if (fFlags & RTSTR_F_VALSIGNED)
232 if ((ullValue.ulHi || (fFlags & RTSTR_F_64BIT) ? ullValue.ulHi : ullValue.ulLo) & 0x80000000)
239 else if (fFlags & (RTSTR_F_PLUS | RTSTR_F_BLANK))
240 psz[i++] = (char)(fFlags & RTSTR_F_PLUS ? '+' : ' ');
246 if ((fFlags & RTSTR_F_SPECIAL) && (uiBase % 8) == 0)
250 psz[i++] = (char)(fFlags & RTSTR_F_CAPITAL ? 'X' : 'x');
258 if (fFlags & RTSTR_F_ZEROPAD)
265 else if (!(fFlags & RTSTR_F_LEFT) && cchWidth > 0)
291 if (ullValue.ulHi || (fFlags & RTSTR_F_64BIT))
294 if (fFlags & RTSTR_F_THOUSAND_SEP)
315 ul = (fFlags & RTSTR_F_VALSIGNED) && (ullValue.ulLo & 0x80000000) ? -(int32_t)ullValue.ulLo : ullValue.ulLo;
316 if (fFlags & RTSTR_F_THOUSAND_SEP)
339 if (fFlags & RTSTR_F_LEFT)
386 unsigned int fFlags = 0;
397 case '#': fFlags |= RTSTR_F_SPECIAL; continue;
398 case '-': fFlags |= RTSTR_F_LEFT; continue;
399 case '+': fFlags |= RTSTR_F_PLUS; continue;
400 case ' ': fFlags |= RTSTR_F_BLANK; continue;
401 case '0': fFlags |= RTSTR_F_ZEROPAD; continue;
402 case '\'': fFlags |= RTSTR_F_THOUSAND_SEP; continue;
416 fFlags |= RTSTR_F_WIDTH;
425 fFlags |= RTSTR_F_LEFT;
427 fFlags |= RTSTR_F_WIDTH;
450 fFlags |= RTSTR_F_PRECISION;
524 if (!(fFlags & RTSTR_F_LEFT))
551 if (!(fFlags & RTSTR_F_LEFT))
584 if (!(fFlags & RTSTR_F_LEFT))
612 if (!(fFlags & RTSTR_F_LEFT))
643 fFlags |= RTSTR_F_VALSIGNED;
651 fFlags |= RTSTR_F_ZEROPAD; /* Note not standard behaviour (but I like it this way!) */
662 fFlags |= RTSTR_F_CAPITAL;
670 else if (fFlags & RTSTR_F_VALSIGNED)
675 fFlags |= RTSTR_F_64BIT;
680 fFlags |= RTSTR_GET_BIT_FLAG(unsigned long);
685 fFlags |= RTSTR_GET_BIT_FLAG(signed short);
690 fFlags |= RTSTR_GET_BIT_FLAG(int8_t);
695 fFlags |= RTSTR_F_64BIT;
700 fFlags |= RTSTR_GET_BIT_FLAG(size_t);
705 fFlags |= RTSTR_GET_BIT_FLAG(ptrdiff_t);
710 fFlags |= RTSTR_GET_BIT_FLAG(signed int);
718 fFlags |= RTSTR_F_64BIT;
723 fFlags |= RTSTR_GET_BIT_FLAG(unsigned long);
728 fFlags |= RTSTR_GET_BIT_FLAG(unsigned short);
733 fFlags |= RTSTR_GET_BIT_FLAG(uint8_t);
738 fFlags |= RTSTR_F_64BIT;
743 fFlags |= RTSTR_GET_BIT_FLAG(size_t);
748 fFlags |= RTSTR_GET_BIT_FLAG(ptrdiff_t);
753 fFlags |= RTSTR_GET_BIT_FLAG(unsigned int);
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);