176 {
178 bool is_numeric = false;
179
181 case 'd':
182 case 'i':
183 case 'u':
184 case 'o':
185 case 'c':
187 break;
188
189 case 'x': {
190 is_numeric = true;
194 const bool nonzero = is_float ? a.
f != 0.0f : a.
d != 0.0;
196 result = fl::string(spec.uppercase ? "0X" : "0x") + result;
197 }
198 break;
199 }
200
201 case 'f': {
202 is_numeric = true;
207 } else {
208 sstream temp;
211 }
212 break;
213 }
214
215 case 's': {
216 sstream temp;
219 break;
220 }
221
222 default:
223 result =
"<unknown_format>";
224 break;
225 }
227}
void stream_floating(sstream &temp, const ScalarArg &a) FL_NO_EXCEPT
void emit_padded(sstream &stream, const FormatSpec &spec, const fl::string &result, bool is_numeric) FL_NO_EXCEPT
fl::string format_float(float value, int precision) FL_NO_EXCEPT
constexpr int type_rank< T >::value
fl::string to_hex(T value, bool uppercase=false, bool pad_to_width=false) FL_NO_EXCEPT
Convert an integer value to hexadecimal string representation.
expected< T, E > result
Alias for expected (Rust-style naming)
Base definition for an LED controller.