FastLED 3.9.15
Loading...
Searching...
No Matches

◆ format_impl() [1/2]

void fl::printf_detail::format_impl ( sstream & stream,
const char * format )
inline

Definition at line 563 of file stdio.h.

563 {
564 while (*format) {
565 if (*format == '%') {
567 if (spec.type == '%') {
568 stream << "%";
569 continue;
570 } else {
571 // No argument for format specifier
572 stream << "<missing_arg>";
573 continue;
574 }
575 } else {
576 // Create a single-character string since sstream treats char as number
577 char temp_str[2] = {*format, '\0'};
578 stream << temp_str;
579 ++format;
580 }
581 }
582}
FormatSpec parse_format_spec(const char *&format) FL_NOEXCEPT
Definition stdio.h:109
fl::string format(const char *fmt)
Format with no arguments.
Definition format.h:439

References FL_NOEXCEPT, fl::format(), parse_format_spec(), and fl::printf_detail::FormatSpec::type.

Referenced by format_impl(), fl::printf(), and fl::snprintf().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: