Lines Matching refs:str
10 static char *write_num(char *str, uint64_t num, int base, int field_width, int precision, int flags…
11 static char *write_float_point_num(char *str, double num, int field_width, int precision, int flags…
36 int64_t put_string(char *str, uint64_t front_color, uint64_t bg_color) in put_string() argument
38 return syscall_invoke(SYS_PUT_STRING, (uint64_t)str, front_color, bg_color, 0, 0, 0, 0, 0); in put_string()
79 char *str = NULL, *s = NULL; in vsprintf() local
81 str = buf; in vsprintf()
95 *str = *fmt; in vsprintf()
96 ++str; in vsprintf()
200 *str++ = '%'; in vsprintf()
210 *str = ' '; in vsprintf()
211 ++str; in vsprintf()
215 *str++ = (unsigned char)va_arg(args, int); in vsprintf()
219 *str = ' '; in vsprintf()
220 ++str; in vsprintf()
246 *str = ' '; in vsprintf()
247 ++str; in vsprintf()
252 *str = *s; in vsprintf()
254 ++str; in vsprintf()
259 *str = ' '; in vsprintf()
260 ++str; in vsprintf()
270 str = write_num(str, va_arg(args, long long), 8, field_width, precision, flags); in vsprintf()
272 str = write_num(str, va_arg(args, int), 8, field_width, precision, flags); in vsprintf()
283 … str = write_num(str, (unsigned long)va_arg(args, void *), 16, field_width, precision, flags); in vsprintf()
293 str = write_num(str, va_arg(args, int64_t), 16, field_width, precision, flags); in vsprintf()
295 str = write_num(str, va_arg(args, int), 16, field_width, precision, flags); in vsprintf()
304 str = write_num(str, va_arg(args, long long), 10, field_width, precision, flags); in vsprintf()
306 str = write_num(str, va_arg(args, int), 10, field_width, precision, flags); in vsprintf()
312 … str = write_num(str, va_arg(args, unsigned long long), 10, field_width, precision, flags); in vsprintf()
314 str = write_num(str, va_arg(args, unsigned int), 10, field_width, precision, flags); in vsprintf()
325 *ip = str - buf; in vsprintf()
332 str = write_float_point_num(str, va_arg(args, double), field_width, precision, flags); in vsprintf()
338 *str++ = '%'; in vsprintf()
340 *str++ = *fmt; in vsprintf()
346 *str = '\0'; in vsprintf()
349 return str - buf; in vsprintf()
352 static char *write_num(char *str, uint64_t num, int base, int field_width, int precision, int flags) in write_num() argument
432 *str++ = ' '; in write_num()
435 *str++ = sign; in write_num()
439 *str++ = '0'; in write_num()
440 *str++ = digits[33]; in write_num()
443 *str++ = digits[24]; // 注意这里是英文字母O或者o in write_num()
446 *str++ = pad; in write_num()
450 *str++ = '0'; in write_num()
454 *str++ = tmp_num[js_num]; in write_num()
457 *str++ = ' '; in write_num()
459 return str; in write_num()
462 static char *write_float_point_num(char *str, double num, int field_width, int precision, int flags) in write_float_point_num() argument
526 *str++ = pad; in write_float_point_num()
529 *str++ = sign; in write_float_point_num()
536 *str++ = tmp_num_z[js_num_z - 1]; in write_float_point_num()
539 *str++ = '.'; in write_float_point_num()
544 *str++ = tmp_num_d[js_num_d]; in write_float_point_num()
549 *str++ = '0'; in write_float_point_num()
553 *str++ = ' '; in write_float_point_num()
555 return str; in write_float_point_num()