-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for string view? #21
Comments
Hi, this seems possible to me. A way to implement this would be to upgrade the part of the algorithm to be able to look at the next two types instead of only one, and pop them both off if there is a I would however certainly not implement this like in your example where writing What do you think? |
I was hoping there would be a way to not have to provide the size and data pointer directly, rather just the string view itself |
Oh right, i missed that detail of your example. It is possible, but then we'd be creating custom code again (Just like the template-based printf function in Bjarne's original C++ book). It seems like libfmt is what you need. |
Would it be possible to add support for printing non-null terminated string views using the precision spec, e.g.
would generate
The text was updated successfully, but these errors were encountered: