问题
i need in my application the feathers that the good old egrep and wget give me , but i can't execute them as separate process i need them as embedded functions in my application is there any way to do that ? cross platform and c++
回答1:
For getting wget
functionality you could use libcurl.
回答2:
You can use a regular expressions library. Boost::Regex is a common option. A less portable option for now is the Visual C++ Feature Pack or the Dikumware TR1 implementations, which already come with regular expressions support. Finally you can search google for "C++ regular expressions" and you should be offered with other options.
回答3:
Judging from this mailing list entry, wget is probably not available in library form currently:
http://www.mail-archive.com/bug-wget@gnu.org/msg00431.html
来源:https://stackoverflow.com/questions/1221650/is-there-any-way-to-embed-egrep-and-wget-in-my-application