|
FastLED 3.9.15
|
| fl::string fl::to_hex | ( | T | value, |
| bool | uppercase = false, | ||
| bool | pad_to_width = false ) |
Convert an integer value to hexadecimal string representation.
| T | Integral type |
| value | The integer value to convert |
| uppercase | If true, use uppercase hex digits (A-F), otherwise lowercase (a-f) |
| pad_to_width | If true, pad with leading zeros to full type width (default: false for minimal representation) |
Example usage:
Definition at line 517 of file string.h.
References FL_NOEXCEPT, fl::detail::get_hex_int_width(), fl::detail::hex(), type_rank< T >::value, and width.
Referenced by fl::printf_detail::format_arg(), and fl::printf_detail::format_arg().
Here is the call graph for this function:
Here is the caller graph for this function: