364 {
366 bool is_numeric = false;
367
369 case 'd':
370 case 'i': {
373 break;
374 }
375 is_numeric = true;
376
377
379 temp << arg;
381
382
384 if (!is_negative) {
389 }
390 }
391 break;
392 }
393
394 case 'u': {
397 break;
398 }
399 is_numeric = true;
400
401
402 sstream temp;
403 temp << arg;
405 break;
406 }
407
408 case 'o': {
411 break;
412 }
413 is_numeric = true;
414
415
417
418
421 }
422 break;
423 }
424
425 case 'x': {
426 is_numeric = true;
427
428
430
431
434 }
435 break;
436 }
437
438 case 'f': {
441 break;
442 }
443 is_numeric = true;
444
447 } else {
448 sstream temp;
449 temp << static_cast<float>(arg);
451 }
452 break;
453 }
454
455 case 'c': {
458 break;
459 }
460
461 char ch = static_cast<char>(arg);
462 char temp_str[2] = {ch, '\0'};
464 break;
465 }
466
467 case 's': {
468 sstream temp;
469 temp << arg;
471 break;
472 }
473
474 default:
475 result =
"<unknown_format>";
476 break;
477 }
478
479
481
482
484}
string str() const FL_NOEXCEPT
fl::string to_octal(T value) FL_NOEXCEPT
fl::string format_float(float value, int precision) FL_NOEXCEPT
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)