[Javanetsim-cvs] IceScan/icesockets iceregex.h,1.6,1.7
Status: Beta
Brought to you by:
darkkey
From: QweR <qw...@us...> - 2006-12-13 13:13:34
|
Update of /cvsroot/javanetsim/IceScan/icesockets In directory sc8-pr-cvs6.sourceforge.net:/tmp/cvs-serv16202/icesockets Modified Files: iceregex.h Log Message: Index: iceregex.h =================================================================== RCS file: /cvsroot/javanetsim/IceScan/icesockets/iceregex.h,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** iceregex.h 13 Dec 2006 12:59:06 -0000 1.6 --- iceregex.h 13 Dec 2006 13:13:30 -0000 1.7 *************** *** 122,125 **** --- 122,132 ---- } + bool group(int i, icestring &str){ + char* cstr = new char[subject.length()+1]; + int res = group(i, cstr, subject.length()); + if(res) str.assign(cstr, subject.length()); + return res; + } + private: bool find(icestring const& s, std::vector<icestring> &v, int start){ |