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

◆ format_impl() [1/2]

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

Definition at line 326 of file printf.h.

326 {
327 while (*format) {
328 if (*format == '%') {
329 FormatSpec spec = parse_format_spec(format);
330 if (spec.type == '%') {
331 stream << "%";
332 } else {
333 // No argument for format specifier
334 stream << "<missing_arg>";
335 }
336 } else {
337 // Create a single-character string since StrStream treats char as number
338 char temp_str[2] = {*format, '\0'};
339 stream << temp_str;
340 ++format;
341 }
342 }
343}
FormatSpec parse_format_spec(const char *&format)
Definition printf.h:95

References 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: