Format a pointer
| 271 | |
| 272 | // Format a pointer |
| 273 | inline fl::string format_pointer(const void* ptr, const FormatSpec& spec) { |
| 274 | fl::uptr addr = fl::ptr_to_int(const_cast<void*>(ptr)); |
| 275 | |
| 276 | FormatSpec hex_spec = spec; |
| 277 | hex_spec.type = 'x'; |
| 278 | hex_spec.alternate = true; |
| 279 | |
| 280 | return format_integer(addr, hex_spec); |
| 281 | } |
| 282 | |
| 283 | // Format a string value |
| 284 | inline fl::string format_string(const char* value, const FormatSpec& spec) { |
no test coverage detected