- Improve readability, const correctness
- const QChar as value, not reference
Try to type this in a C++ file: ('\'') => ended up in something like: ('\''') Try to add afterwarnds double quotes to some word in a text, without to select the word: foo "bar" haz => ended up in something like: foo "bar"" haz
Just a note to the current RegEx solution:
It's done as you see in a slightly redundant dumb way. Perhaps is a special function without regex faster?