Lines Matching refs:flags

9 static char *write_num(char *str, uint64_t num, int base, int field_width, int precision, int flags
10 static char *write_float_point_num(char *str, double num, int field_width, int precision, int flags
81 int flags; // 用来存储格式信息的bitmap in vsprintf() local
101 field_width = flags = 0; in vsprintf()
119 flags |= LEFT; in vsprintf()
124 flags |= PLUS; in vsprintf()
128 flags |= SPACE; in vsprintf()
133 flags |= SPECIAL; in vsprintf()
138 flags |= PAD_ZERO; in vsprintf()
162 flags |= LEFT; in vsprintf()
204 if (!(flags & LEFT)) in vsprintf()
241 if (!(flags & LEFT)) in vsprintf()
264 flags |= SMALL; in vsprintf()
266 flags |= SPECIAL; in vsprintf()
268 str = write_num(str, va_arg(args, long long), 8, field_width, precision, flags); in vsprintf()
270 str = write_num(str, va_arg(args, int), 8, field_width, precision, flags); in vsprintf()
278 flags |= PAD_ZERO; in vsprintf()
281 … str = write_num(str, (unsigned long)va_arg(args, void *), 16, field_width, precision, flags); in vsprintf()
287 flags |= SMALL; in vsprintf()
291 str = write_num(str, va_arg(args, int64_t), 16, field_width, precision, flags); in vsprintf()
293 str = write_num(str, va_arg(args, int), 16, field_width, precision, flags); in vsprintf()
300 flags |= SIGN; in vsprintf()
302 str = write_num(str, va_arg(args, long long), 10, field_width, precision, flags); in vsprintf()
304 str = write_num(str, va_arg(args, int), 10, field_width, precision, flags); in vsprintf()
310 … str = write_num(str, va_arg(args, unsigned long long), 10, field_width, precision, flags); in vsprintf()
312 str = write_num(str, va_arg(args, unsigned int), 10, field_width, precision, flags); in vsprintf()
330 str = write_float_point_num(str, va_arg(args, double), field_width, precision, flags); in vsprintf()
350 static char *write_num(char *str, uint64_t num, int base, int field_width, int precision, int flags) in write_num() argument
370 if (flags & SMALL) in write_num()
373 if (flags & LEFT) in write_num()
374 flags &= ~PAD_ZERO; in write_num()
376 pad = (flags & PAD_ZERO) ? '0' : ' '; in write_num()
380 if (flags & SIGN) in write_num()
394 sign = (flags & PLUS) ? '+' : ((flags & SPACE) ? ' ' : 0); in write_num()
401 if (flags & SPECIAL) in write_num()
428 if (!(flags & (LEFT + PAD_ZERO))) in write_num()
434 if (flags & SPECIAL) in write_num()
442 if (!(flags & LEFT)) in write_num()
460 static char *write_float_point_num(char *str, double num, int field_width, int precision, int flags) in write_float_point_num() argument
476 if (flags & SMALL) in write_float_point_num()
480 pad = (flags & PAD_ZERO) ? '0' : ' '; in write_float_point_num()
482 if (flags & SIGN && num < 0) in write_float_point_num()
490 sign = (flags & PLUS) ? '+' : ((flags & SPACE) ? ' ' : 0); in write_float_point_num()
522 if (!(flags & LEFT)) in write_float_point_num()