• 大小: 20.71MB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2023-08-01
  • 语言: C/C++
  • 标签: boost  vc6  regex  

资源简介

vc6可利用boost库使用正则表达式。支持vc6的最高boost版本是1.34.1。很多人编译boost库遇到这样那样的问题。这个是我编译好的库,直接解压后,在vc中设置好include和lib路径即可使用。 测试程序: #include #include #include #include #include using namespace std; using namespace boost; int main( int argc, char * argv[]) { regex expression_r_r_r_r( " (\\d+)-(\\d+)-(\\d+) " ); // 注意转义方式 string in ( " Today: 2007-06-23 " ); cmatch what; // 如果用 regex_match 方法将需要完全匹配, // 不能在字符串中找寻模式,可用于验证输入 if (regex_search( in.c_str(), what, expression_r_r_r_r)) { for ( int i = 0 ;i < what.size();i ++ ) { cout << " str : [" << what[i].str() << "]" << endl; } } return 0 ; }

资源截图

代码片段和文件信息

//  (C) Copyright Gennadiy Rozental 2005.
//  Use modification and distribution are subject to the 
//  Boost Software License Version 1.0. (See accompanying file 
//  LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)

//  See http://www.boost.org/libs/test for the library home page.
//
//  File        : $RCSfile: argv_traverser.cppv $
//
//  Version     : $Revision: 1.1 $
//
//  Description : offline implementation for argc/argv traverser
// ***************************************************************************

#define BOOST_RT_PARAM_INLINE
#include 

// ************************************************************************** //
//   Revision History:
//
//   $Log: argv_traverser.cppv $
//   Revision 1.1  2005/04/12 06:42:42  rogeeff
//   Runtime.Param library initial commit
//
// ************************************************************************** //

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件        392  2005-10-19 09:40  Boost\include\boost-1_34_1\boost\tr1\tr1\bcc32\array.h

     文件       3979  2006-09-20 15:49  Boost\include\boost-1_34_1\boost\python\detail\python22_fixed.h

     文件        395  2005-10-19 09:40  Boost\include\boost-1_34_1\boost\tr1\tr1\bcc32\random.h

     文件        392  2005-10-19 09:40  Boost\include\boost-1_34_1\boost\tr1\tr1\bcc32\regex.h

     文件       2274  2004-09-29 03:22  Boost\include\boost-1_34_1\boost\regex.h

     文件        392  2005-10-19 09:40  Boost\include\boost-1_34_1\boost\tr1\tr1\bcc32\tuple.h

     文件        410  2005-10-19 09:40  Boost\include\boost-1_34_1\boost\tr1\tr1\bcc32\type_tra.h

     文件        607  2005-01-27 09:49  Boost\include\boost-1_34_1\boost\archive\detail\abi_prefix.hpp

     文件        657  2003-11-25 11:28  Boost\include\boost-1_34_1\boost\config\abi_prefix.hpp

     文件        558  2005-01-27 09:49  Boost\include\boost-1_34_1\boost\archive\detail\abi_suffix.hpp

     文件        744  2003-11-25 11:28  Boost\include\boost-1_34_1\boost\config\abi_suffix.hpp

     文件       1579  2004-09-02 08:41  Boost\include\boost-1_34_1\boost\spirit\fusion\detail\access.hpp

     文件       3505  2005-11-26 10:12  Boost\include\boost-1_34_1\boost\xpressive\detail\core\access.hpp

     文件       3875  2005-07-10 18:35  Boost\include\boost-1_34_1\boost\serialization\access.hpp

     文件       2945  2005-04-11 08:03  Boost\include\boost-1_34_1\boost\iostreams\detail\access_control.hpp

     文件       2226  2006-10-16 10:40  Boost\include\boost-1_34_1\boost\multi_index\detail\access_specifier.hpp

     文件       1067  2005-01-19 08:20  Boost\include\boost-1_34_1\boost\mpl\accumulate.hpp

     文件       7626  2006-07-24 14:33  Boost\include\boost-1_34_1\boost\math\complex\acos.hpp

     文件       1070  2005-10-15 04:59  Boost\include\boost-1_34_1\boost\math\complex\acosh.hpp

     文件       6338  2004-08-19 08:19  Boost\include\boost-1_34_1\boost\math\special_functions\acosh.hpp

     文件       1657  2005-11-26 10:12  Boost\include\boost-1_34_1\boost\xpressive\detail\core\action.hpp

     文件       2320  2005-11-26 10:12  Boost\include\boost-1_34_1\boost\xpressive\detail\core\matcher\action_matcher.hpp

     文件       2066  2005-11-26 10:12  Boost\include\boost-1_34_1\boost\xpressive\detail\core\action_state.hpp

     文件       4780  2004-07-09 01:28  Boost\include\boost-1_34_1\boost\spirit\core\composite\actions.hpp

     文件       5766  2004-07-26 20:43  Boost\include\boost-1_34_1\boost\lambda\detail\actions.hpp

     文件       5264  2004-09-13 02:20  Boost\include\boost-1_34_1\boost\spirit\actor.hpp

     文件      19684  2005-01-28 04:59  Boost\include\boost-1_34_1\boost\spirit\phoenix\actor.hpp

     文件       1343  2005-02-16 11:01  Boost\include\boost-1_34_1\boost\spirit\fusion\iterator\detail\adapt_deref_traits.hpp

     文件        863  2004-07-17 12:48  Boost\include\boost-1_34_1\boost\spirit\fusion\iterator\detail\adapt_value_traits.hpp

     文件       2244  2005-11-26 10:12  Boost\include\boost-1_34_1\boost\xpressive\detail\core\adaptor.hpp

............此处省略4233个文件信息

评论

共有 条评论