Quote Originally Posted by high_flyer View Post
I would tend to say that working like that with a strings is inefficient on its self, and if you have to replace 30 place holders, then the syntax doesn't change much, you still have to resolve 30 place holder, is some form, be it calling a function 30 times, or some other operations that will do the same job - but the job has to be done.
I would be interested to see your implementation, and see if it really will be more efficient.
But enough philosophy.

One way, which may be more efficient (if its not the way Qt is doing it in replace()) is to use QRegExp to look for the place holders and use QMap<QString,QString> as a dictionary.
Yea, unfortunately strings are inefficient, but until humans cannot read bitstreams...

Seems like the QHash class is the right dictionary object, but also it seems, that I have to write the string parsing and buffer filling by my own, cause I want to avoid expensive heap allocation calls for temporary strings with partial replacements...

Thanks All!