514 {
516
517 bool is_numeric = false;
518
520 case 's':
521 if (arg) {
523 } else {
525 }
526 break;
527 case 'p': {
528
529 is_numeric = true;
530 const void* ptr = static_cast<const void*>(arg);
531 fl::uptr addr = reinterpret_cast<fl::uptr>(ptr);
533 break;
534 }
535 case 'x':
536 result =
"<string_not_hex>";
537 break;
538 case 'd':
539 case 'i':
540 case 'u':
541 case 'o':
542 case 'f':
543 case 'c':
545 break;
546 default:
547 result =
"<unknown_format>";
548 break;
549 }
550
551
554}
fl::string apply_width(const fl::string &str, const FormatSpec &spec, bool is_numeric=false) FL_NOEXCEPT
fl::string to_hex(T value, bool uppercase=false, bool pad_to_width=false) FL_NOEXCEPT
Convert an integer value to hexadecimal string representation.
expected< T, E > result
Alias for expected (Rust-style naming)