摘要:        
#include <iostream>#include <boost/regex.hpp> using namespace std; int main(){ boost::regex reg("\\{([\\w]+)\\}"); std::string s="{afd}lookki{vvvv}kjkj{ddd}{ssss}{fddda}"; boost::sregex_iterator end; for (boost::sregex_iterator it(s.begin(),s.end(),reg); it != end; it    阅读全文
posted @ 2012-10-12 11:29
瑞尼书苑
阅读(223)
评论(0)
推荐(0)
        
            
        
        
摘要:        
#include<string>std::stringws2s(conststd::wstring&ws){std::stringcurLocale=setlocale(LC_ALL,NULL);//curLocale="C";setlocale(LC_ALL,"chs");constwchar_t*_Source=ws.c_str();size_t_Dsize=2*ws.size()+1;char*_Dest=newchar[_Dsize];memset(_Dest,0,_Dsize);wcstombs(_Dest,_Source,    阅读全文
posted @ 2012-10-12 11:24
瑞尼书苑
阅读(1195)
评论(0)
推荐(0)
        
 
                    
                     
                    
                 
                    
                 
 
         浙公网安备 33010602011771号
浙公网安备 33010602011771号