资源简介
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个文件信息
- 上一篇:MFC聊天室与文件传输
- 下一篇:深度探索C++对象模型 PDF中文清晰版
相关资源
- zw_vc6.0可执行源码.zip
- vc6.0调用vs2008 CImage类
- VB6 VC6最佳打包工具InstallShield,内附教
- VS2017C++windows桌面应用程序项目OpenCV及
- VC6.0中文版
- VC6.0实现socket、tcp传输,支持各类文件
- vc6.0串口通信,采用mscomm控件
- Visual C++ 6.0编程与技巧.pdf
- 亲测VC++ 编程助手 Vissual AssistX (VS
- VS2010——Mschart应用成功
- VC6.0+MFC类库参考手册中文完整版
- VC6绿色完整版
- boost中文手册中文帮助文档
- VC6.0+ACCESS图书管理系统源代码
- 用C语言实现的基于adaboost算法的人脸
- 学生成绩管理系统VC6.0_MFC实现
- vc6.0绝对纯净版
- 面向对象程序设计 旅店管理系统
- 基于SURF的特征检测程序 VC6.0下可以直
- 基于VC6.0 的MFC俄罗斯方块游戏设计含
- boost_1_59_0.tar.gz
- vc6.0完整英文版
- VC6.0完整绿色版
- VC助手 VA_X_2074 破解版支持VC6~VS2015
- MFC SOCKET TCP VC6.0 服务器 客户端 源码编
- 番茄助手适用于VS2008/2012/2013/ VC6.0
- php-5.2.13-Win32-VC6-x86.msi
- 《Boost程序库完全开发指南:深入C++“
- xgboost源代码
- visual assist x (支持vs2017)插件及破解
评论
共有 条评论