Is there any way to embed egrep and wget in my app

2019-09-19 19:49发布

问题:

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



标签: c++ wget grep