jbeder / yaml-cpp

A YAML parser and emitter in C++
MIT License
4.91k stars 1.77k forks source link

Figuring out if a string will round-trip #1276

Open gyorokpeter opened 3 months ago

gyorokpeter commented 3 months ago

E.g. if I render a string with the value true or 1.1, when parsed back they become a boolean and a number respectively. Is there a way to determine if a certain string doesn't round trip and therefore needs quotes added when emitting it?