You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First, thank you, the cxx-prettyprint library is really great. However, I wanted the strings in my output to be quoted, especially non-trimmed strings are otherwise hard to understand.
The patch is good enough to solve my specific use case, however, if the option to quote string proves to be useful for others, I would expect there is a better way to implement it. So, no pull request but a prove of concept if others are interested.
The text was updated successfully, but these errors were encountered:
Decent idea... One step further would be single quotes for values stored as a single char
Only thing is it would be unlike cout and ostringstream's default behaviour for strings, leaving out the quotes. But it kinda makes sense when printing the full contents of an STL container.
First, thank you, the cxx-prettyprint library is really great. However, I wanted the strings in my output to be quoted, especially non-trimmed strings are otherwise hard to understand.
Example: [" ", ""] instead of [ , ]
I'm not sure if it is possible to customize it with the existing template specializations, so I made some minor modification:
https://github.com/philipp-classen/cxx-prettyprint
The patch is good enough to solve my specific use case, however, if the option to quote string proves to be useful for others, I would expect there is a better way to implement it. So, no pull request but a prove of concept if others are interested.
The text was updated successfully, but these errors were encountered: