Is there any way to print a string as quoted using {fmt}?
Here is an example code showing what I want to achieve:
fmt::print("Hello {}!", "Terens");
I want the code to print Hello "Terens"!
instead of just Hello Terens!
.
EDIT: I want to use the API for printing different data not known beforehand (I am writing this for a library, so I specifically want a quoted output when the data is a std::string
or std::string_view
.