If you are using the main C++ distribution of wxWidgets, Feel free to ask any question related to wxWidgets development here. This means questions regarding to C++ and wxWidgets, not compile problems.
Hello wx people.
I'm making a code generator tool, and i have created for this .cpp and .h templates (not as in c++ templates). Where i want to replace certain string by others:
ie:
Use regular expressions on buffers of text. If line by line is enough, just read in a line of text from the file and apply the regular expression(s) to it.
Game_Ender wrote:Use regular expressions on buffers of text. If line by line is enough, just read in a line of text from the file and apply the regular expression(s) to it.
Would i have to apply the replacements to each line???
How would i do this? (some example code maybe... ) Isn't there a way to load the file in a string, Replace on the whole string with ReplaceAll= true??? I would use wxRegEx or the Replace method of wxString, is the same for my case.
But i would not like to do this on a line by line way.
Regards, Mat
Just a newbie - Too many interests, not too many time.
Windows XP SP2
Kubuntu GNU/Linux - Feisty
wxActiveRecordGenerator (aka wxARG) maintainer
Find it at wxCode