Definition at line 520 of file stdio.h.
520 {
522 bool is_numeric = false;
523
525 case 'd':
526 case 'i': {
529 break;
530 }
531 is_numeric = true;
532
533
535 temp << arg;
537
538
540 if (!is_negative) {
545 }
546 }
547 break;
548 }
549
550 case 'u': {
553 break;
554 }
555 is_numeric = true;
556
557
558 sstream temp;
559 temp << arg;
561 break;
562 }
563
564 case 'o': {
567 break;
568 }
569 is_numeric = true;
570
571
573
574
577 }
578 break;
579 }
580
581 case 'x': {
582 is_numeric = true;
583
584
586
587
590 }
591 break;
592 }
593
594 case 'f': {
597 break;
598 }
599 is_numeric = true;
600
603 } else {
604 sstream temp;
605 temp << static_cast<float>(arg);
607 }
608 break;
609 }
610
611 case 'c': {
614 break;
615 }
616
617 char ch = static_cast<char>(arg);
618 char temp_str[2] = {ch, '\0'};
620 break;
621 }
622
623 case 's': {
624 sstream temp;
625 temp << arg;
627 break;
628 }
629
630 default:
631 result =
"<unknown_format>";
632 break;
633 }
634
635
637
638
640}
string str() const FL_NO_EXCEPT
fl::string apply_width(const fl::string &str, const FormatSpec &spec, bool is_numeric=false) FL_NO_EXCEPT
fl::string to_octal(T value) FL_NO_EXCEPT
fl::string format_float(float value, int precision) FL_NO_EXCEPT
fl::string to_hex(T value, bool uppercase=false, bool pad_to_width=false) FL_NO_EXCEPT
Convert an integer value to hexadecimal string representation.
expected< T, E > result
Alias for expected (Rust-style naming)
References fl::printf_detail::FormatSpec::alt_form, apply_width(), fl::FL_NO_EXCEPT, format_float(), fl::printf_detail::FormatSpec::precision, fl::printf_detail::FormatSpec::show_sign, fl::printf_detail::FormatSpec::space_sign, fl::sstream::str(), fl::to_hex(), to_octal(), fl::printf_detail::FormatSpec::type, fl::printf_detail::FormatSpec::uppercase, fl::is_floating_point< T >::value, and fl::is_integral< T >::value.