资源简介
linux下posix标准的正则表达式库,支持regcomp, regexec等,可以放到vs2010或vs2012下进行编译。
代码片段和文件信息
/* Extended regular expression matching and search library
version 0.12.
(Implements POSIX draft P10003.2/D11.2 except for
internationalization features.)
Copyright (C) 1993 1994 1995 Free Software Foundation Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 or (at your option)
any later version.
This program is distributed in the hope that it will be useful
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not write to the Free Software
Foundation Inc. 675 Mass Ave Cambridge MA 02139 USA. */
/* AIX requires this to be the first thing in the file. */
//add by test qiao
#if defined (_AIX) && !defined (REGEX_MALLOC)
#pragma alloca
#endif
#define _GNU_SOURCE
#ifdef HAVE_CONFIG_H
#include
#endif
/* We need this for ‘regex.h‘ and perhaps for the Emacs include files. */
#include
/* This is for other GNU distributions with internationalized messages. */
#if HAVE_LIBINTL_H || defined (_LIBC)
# include
#else
# define gettext(msgid) (msgid)
#endif
/* The ‘emacs‘ switch turns on certain matching commands
that make sense only in Emacs. */
#ifdef emacs
#include “lisp.h“
#include “buffer.h“
#include “syntax.h“
#else /* not emacs */
/* If we are not linking with Emacs proper
we can‘t use the relocating allocator
even if config.h says that we can. */
#undef REL_ALLOC
#if defined (STDC_HEADERS) || defined (_LIBC)
#include
#else
char *malloc ();
char *realloc ();
#endif
/* When used in Emacs‘s lib-src we need to get bzero and bcopy somehow.
If nothing else has been done use the method below. */
#ifdef INHIBIT_STRING_HEADER
#if !(defined (HAVE_BZERO) && defined (HAVE_BCOPY))
#if !defined (bzero) && !defined (bcopy)
#undef INHIBIT_STRING_HEADER
#endif
#endif
#endif
/* This is the normal way of making sure we have a bcopy and a bzero.
This is used in most programs--a few other programs avoid this
by defining INHIBIT_STRING_HEADER. */
#ifndef INHIBIT_STRING_HEADER
/*#if defined (HAVE_STRING_H) || defined (STDC_HEADERS) || defined (_LIBC)*/
#include
#ifndef bcmp
#define bcmp(s1 s2 n) memcmp ((s1) (s2) (n))
#endif
#ifndef bcopy
#define bcopy(s d n) memcpy ((d) (s) (n))
#endif
#ifndef bzero
#define bzero(s n) memset ((s) 0 (n))
#endif
/*#else
#include
#endif*/
#endif
/* Define the syntax stuff for < > etc. */
/* This must be nonzero for the wordchar and notwordchar pattern
commands in re_match_2. */
#ifndef Sword
#define Sword 1
#endif
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 212835 2018-12-13 11:14 regex\regex.c
文件 19187 2018-01-19 18:21 regex\regex.h
目录 0 2018-12-13 11:06 regex
----------- --------- ---------- ----- ----
232022 3
- 上一篇:双向循环链表解决约瑟夫环问题
- 下一篇:c++字典列表
相关资源
- c++字典列表
- C++源代码飞机订票系统
- VC++ MFC 如何用 CZip CUnzip类压缩解压缩
- C++课程设计选课系统
- 遗传算法C++实现若干
- Oracle 84%安装报错compat-libstdc++-33-3.2.
- c++实现的双向通信的socket小程序
- OpenGL纹理贴图源程序.rar
- 《Qt 5.9 C++开始指南》2.2节 可视化UI设
- C++本科作业--模拟动物园
- C++ 编写的杀毒软件
- Visual C++开发基于SNMP的网络管理软件
- c/c++中文帮助文档API
- Marching cubes C++ 源代码
- Vc++6.0MFC入门教程,很好的资源。
- VC++6.0 MFC 超简易计算器
- C++画数学函数图象
- c++实现数字转换英文无and
- c++利用数组实现简单的奇偶校验
- C++实现软件自动更新(update)
- c++遗传算法,用bitset实现
- VC++ OPC客户端程序
- C++纸牌游戏——21点
- 大整数乘法全解绝对可运行C++
- 《C++标准库 第2版》 中文版
- 车辆管理系统C++
- 小型C++设计的数据库设计
- C++ Primer Plus第6版中文版源代码
- C++ 二叉树 动物猜想游戏
- 多个定时器的 Timer VC++
评论
共有 条评论