Lines Matching refs:str
25 static char *write_num(char *str, ul num, int base, int field_width, int precision, int flags);
27 static char *write_float_point_num(char *str, double num, int field_width, int precision, int flags…
60 char *str = NULL, *s = NULL, *end = NULL; in __do_vsprintf() local
62 str = buf; in __do_vsprintf()
80 *str = *fmt; in __do_vsprintf()
81 ++str; in __do_vsprintf()
185 *str++ = '%'; in __do_vsprintf()
195 *str = ' '; in __do_vsprintf()
196 ++str; in __do_vsprintf()
200 *str++ = (unsigned char)va_arg(args, int); in __do_vsprintf()
204 *str = ' '; in __do_vsprintf()
205 ++str; in __do_vsprintf()
231 *str = ' '; in __do_vsprintf()
232 ++str; in __do_vsprintf()
237 *str = *s; in __do_vsprintf()
239 ++str; in __do_vsprintf()
244 *str = ' '; in __do_vsprintf()
245 ++str; in __do_vsprintf()
255 str = write_num(str, va_arg(args, long long), 8, field_width, precision, flags); in __do_vsprintf()
257 str = write_num(str, va_arg(args, int), 8, field_width, precision, flags); in __do_vsprintf()
268 … str = write_num(str, (unsigned long)va_arg(args, void *), 16, field_width, precision, flags); in __do_vsprintf()
278 str = write_num(str, va_arg(args, ll), 16, field_width, precision, flags); in __do_vsprintf()
280 str = write_num(str, va_arg(args, int), 16, field_width, precision, flags); in __do_vsprintf()
289 str = write_num(str, va_arg(args, long long), 10, field_width, precision, flags); in __do_vsprintf()
291 str = write_num(str, va_arg(args, int), 10, field_width, precision, flags); in __do_vsprintf()
297 … str = write_num(str, va_arg(args, unsigned long long), 10, field_width, precision, flags); in __do_vsprintf()
299 str = write_num(str, va_arg(args, unsigned int), 10, field_width, precision, flags); in __do_vsprintf()
310 *ip = str - buf; in __do_vsprintf()
321 str = write_float_point_num(str, va_arg(args, double), field_width, precision, flags); in __do_vsprintf()
327 *str++ = '%'; in __do_vsprintf()
329 *str++ = *fmt; in __do_vsprintf()
338 if (str < end) in __do_vsprintf()
340 *str = '\0'; in __do_vsprintf()
350 *str = '\0'; in __do_vsprintf()
354 return str - buf; in __do_vsprintf()
383 static char *write_num(char *str, ul num, int base, int field_width, int precision, int flags) in write_num() argument
463 *str++ = ' '; in write_num()
466 *str++ = sign; in write_num()
470 *str++ = '0'; in write_num()
471 *str++ = digits[33]; in write_num()
474 *str++ = digits[24]; //注意这里是英文字母O或者o in write_num()
477 *str++ = pad; in write_num()
481 *str++ = '0'; in write_num()
485 *str++ = tmp_num[js_num]; in write_num()
488 *str++ = ' '; in write_num()
490 return str; in write_num()
493 static char *write_float_point_num(char *str, double num, int field_width, int precision, int flags) in write_float_point_num() argument
557 *str++ = pad; in write_float_point_num()
560 *str++ = sign; in write_float_point_num()
565 *str++ = tmp_num_z[js_num_z - 1]; in write_float_point_num()
568 *str++ = '.'; in write_float_point_num()
573 *str++ = tmp_num_d[js_num_d]; in write_float_point_num()
578 *str++ = '0'; in write_float_point_num()
582 *str++ = ' '; in write_float_point_num()
584 return str; in write_float_point_num()