README file for PCRE (Perl-compatible regular expression library)
-----------------------------------------------------------------
NOTE: This set of files relates to PCRE releases that use the original API,
with library names libpcre, libpcre16, and libpcre32. January 2015 saw the
first release of a new API, known as PCRE2, with release numbers starting at
10.00 and library names libpcre2-8, libpcre2-16, and libpcre2-32. The old
libraries (now called PCRE1) are still being maintained for bug fixes, but
there will be no new development. New projects are advised to use the new PCRE2
libraries.
The latest release of PCRE1 is always available in three alternative formats
from:
https://ftp.pcre.org/pub/pcre/pcre-x.xx.tar.gz
https://ftp.pcre.org/pub/pcre/pcre-x.xx.tar.bz2
https://ftp.pcre.org/pub/pcre/pcre-x.xx.tar.zip
There is a mailing list for discussion about the development of PCRE at
pcre-dev@exim.org. You can access the archives and subscribe or manage your
subscription here:
https://lists.exim.org/mailman/listinfo/pcre-dev
Please read the NEWS file if you are upgrading from a previous release.
The contents of this README file are:
The PCRE APIs
Documentation for PCRE
Contributions by users of PCRE
Building PCRE on non-Unix-like systems
Building PCRE without using autotools
Building PCRE using autotools
Retrieving configuration information
Shared libraries
Cross-compiling using autotools
Using HP's ANSI C++ compiler (aCC)
Compiling in Tru64 using native compilers
Using Sun's compilers for Solaris
Using PCRE from MySQL
Making new tarballs
Testing PCRE
Character tables
File manifest
The PCRE APIs
-------------
PCRE is written in C, and it has its own API. There are three sets of
functions, one for the 8-bit library, which processes strings of bytes, one for
the 16-bit library, which processes strings of 16-bit values, and one for the
32-bit library, which processes strings of 32-bit values. The distribution also
includes a set of C++ wrapper functions (see the pcrecpp man page for details),
courtesy of Google Inc., which can be used to call the 8-bit PCRE library from
C++. Other C++ wrappers have been created from time to time. See, for example:
https://github.com/YasserAsmi/regexp, which aims to be simple and similar in
style to the C API.
The distribution also contains a set of C wrapper functions (again, just for
the 8-bit library) that are based on the POSIX regular expression API (see the
pcreposix man page). These end up in the library called libpcreposix. Note that
this just provides a POSIX calling interface to PCRE; the regular expressions
themselves still follow Perl syntax and semantics. The POSIX API is restricted,
and does not give full access to all of PCRE's facilities.
The header file for the POSIX-style functions is called pcreposix.h. The
official POSIX name is regex.h, but I did not want to risk possible problems
with existing files of that name by distributing it that way. To use PCRE with
an existing program that uses the POSIX API, pcreposix.h will have to be
renamed or pointed at by a link.
If you are using the POSIX interface to PCRE and there is already a POSIX regex
library installed on your system, as well as worrying about the regex.h header
file (as mentioned above), you must also take care when linking programs to
ensure that they link with PCRE's libpcreposix library. Otherwise they may pick
up the POSIX functions of the same name from the other library.
One way of avoiding this confusion is to compile PCRE with the addition of
-Dregcomp=PCREregcomp (and similarly for the other POSIX functions) to the
compiler flags (CFLAGS if you are using "configure" -- see below). This has the
effect of renaming the functions so that the names no longer clash. Of course,
you have to do the same thing for your applications, or write them using the
new names.
Documentation for PCRE
----------------------
If you install PCRE in the normal way on a Unix-like system, you will end up
with a set of man pages whose names all start with "pcre". The one that is just
called "pcre" lists all the others. In addition to these man pages, the PCRE
documentation is supplied in two other forms:
1. There are files called doc/pcre.txt, doc/pcregrep.txt, and
doc/pcretest.txt in the source distribution. The first of these is a
concatenation of the text forms of all the section 3 man pages except
the listing of pcredemo.c and those that summarize individual functions.
The other two are the text forms of the section 1 man pages for the
pcregrep and pcretest commands. These text forms are provided for ease of
scanning with text editors or similar tools. They are installed in
<prefix>/share/doc/pcre, where <prefix> is the installation prefix
(defaulting to /usr/local).
2. A set of files containing all the documentation in HTML form, hyperlinked
in various ways, and rooted in a file called index.html, is distributed in
doc/html and installed in <prefix>/share/doc/pcre/html.
Users of PCRE have contributed files containing the documentation for various
releases in CHM format. These can be found in the Contrib directory of the FTP
site (see next section).
Contributions by users of PCRE
------------------------------
You can find contributions from PCRE users in the directory
ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/Contrib
There is a README file giving brief descriptions of what they are. Some are
complete in themselves; others are pointers to URLs containing relevant files.
Some of this material is likely to be well out-of-date. Several of the earlier
contributions provided support for compiling PCRE on various flavours of
Windows (I myself do not use Windows). Nowadays there is more Windows support
in the standard distribution, so these contibutions have been archived.
A PCRE user maintains downloadable Windows binaries of the pcregrep and
pcretest programs here:
http://www.rexegg.com/pcregrep-pcretest.html
Building PCRE on non-Unix-like systems
--------------------------------------
For a non-Unix-like system, please read the comments in the file
NON-AUTOTOOLS-BUILD, though if your system supports the use of "configure" and
"make" you may be able to build PCRE using autotools in the same way as for
many Unix-like systems.
PCRE can also be configured using the GUI facility provided by CMake's
cmake-gui command. This creates Makefiles, solution files, etc. The file
NON-AUTOTOOLS-BUILD has information about CMake.
PCRE has been compiled on many different operating systems. It should be
straightforward to build PCRE on any system that has a Standard C compiler and
library, because it uses only Standard C functions.
Building PCRE without using autotools
-------------------------------------
The use of autotools (in particular, libtool) is problematic in some
environments, even some that are Unix or Unix-like. See the NON-AUTOTOOLS-BUILD
file for ways of building PCRE without using autotools.
Building PCRE using autotools
-----------------------------
If you are using HP's ANSI C++ compiler (aCC), please see the special note
in the section entitled "Using HP's ANSI C++ compiler (aCC)" below.
The following instructions assume the use of the widely used "configure; make;
make install" (autotools) process.
To build PCRE on system that supports autotools, first run the "configure"
command from the PCRE distribution directory, with your current directory set
to the directory where you want the files to be created. This command is a
standard GNU "autoconf" configuration script, for which generic instructions
are supplied in the file INSTALL.
Most commonly, people build PCRE within its own distribution directory, and in
this case, on many systems, just running "./configure" is sufficient. However,
the usual methods of changing standard defaults are available. For example:
CFLAGS='-O2 -Wall' ./configure --prefix=/opt/
没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
世界上所讨论最多的文本编辑器就是Vim和Emacs,而且关于是选用Vim和Emacs的争论从来就没有停止过。 Emacs被设计的“无所不能”,号称是世界上最强大的文本编辑器,可在Linux,BSD,macOS,Windows等平台上使用,Emacs具有命令可以执行常见但复杂的操作,以及围绕它开发了近40年的插件和配置技巧。与Vim不同,Emacs 不是有模式编辑器,使用Emacs就像使用Windows的记事本一样,但Emacs比Windows的记事本的功能要强大得多。 在Windows下进行安装Emacs,安装程序是一个自解压的压缩文件,只需选择解压目录进行解压即可。解压完成后,运行Emacs所在目录下“bin”目录中的“runemacs.exe”文件,即可启动Emacs程序。 强大的宏:Emacs可以让您从琐碎且单调的编辑任务中解放出来。 撤消和恢复:Emacs的功能使其能够通过几次击键来消除大块文本。 编辑模式:Emacs具有几种用于编辑特定类型文件的预定义模式(称为主要模式)。这些示例包括C,C ++,Java,LaTeX,Perl,Python,Lisp,HTML等主要模式。
资源推荐
资源详情
资源评论
收起资源包目录
文本编辑器Emacs 27.1,著名的集成开发环境和文本编辑器 Emacs被公认为是最受专业程序员喜爱的开源代码编辑器之一 (2000个子文件)
libunistring.a 2.3MB
libgettextlib.a 2.12MB
libxml2.a 1.73MB
libgio-2.0.dll.a 1.27MB
libglib-2.0.dll.a 1.08MB
libiconv.a 1.04MB
libfreetype.a 842KB
libxml2mod.dll.a 615KB
libgettextpo.a 594KB
libunistring.dll.a 534KB
libpixman-1.a 527KB
liblcms2.a 446KB
libgmp.dll.a 374KB
libpango-1.0.a 373KB
libpcre.a 327KB
libgettextpo.dll.a 320KB
libgobject-2.0.dll.a 287KB
liblzo2.a 178KB
libhogweed.dll.a 170KB
libpng.dll.a 168KB
libpng16.dll.a 168KB
libtiff.dll.a 164KB
libcairo-script-interpreter.a 158KB
libidn2.a 157KB
libintl.a 144KB
libfreetype.dll.a 130KB
libtasn1.a 98KB
libharfbuzz-gobject.a 98KB
libgdk_pixbuf-2.0.dll.a 93KB
liblzo2.dll.a 73KB
libpangocairo-1.0.a 73KB
libpcrecpp.dll.a 68KB
libbz2.a 67KB
libp11-kit.dll.a 66KB
libjansson.a 65KB
libintl.dll.a 64KB
liblzma.dll.a 63KB
libpangoft2-1.0.dll.a 61KB
libthai.dll.a 48KB
libjansson.dll.a 45KB
libXpm.dll.a 44KB
libpcre32.dll.a 38KB
libgif.a 33KB
libtre.dll.a 29KB
libtasn1.dll.a 26KB
libturbojpeg.dll.a 24KB
libpangowin32-1.0.dll.a 23KB
libffi.dll.a 22KB
libbz2.dll.a 22KB
libdatrie.dll.a 21KB
libgmodule-2.0.a 12KB
libasprintf.dll.a 12KB
libharfbuzz-subset.dll.a 10KB
libiconv.dll.a 9KB
libtiffxx.a 6KB
libharfbuzz-icu.a 5KB
libregex.dll.a 3KB
libharfbuzz-icu.dll.a 3KB
libgthread-2.0.a 3KB
libcharset.dll.a 2KB
p11-kit-trust.dll.a 1KB
libgnurx.a 1KB
vasnprintf.c 218KB
xmllint.c 98KB
localename.c 84KB
plural.c 52KB
dcigettext.c 46KB
testWriter.c 38KB
loadmsgcat.c 34KB
setlocale.c 32KB
testSAX.c 27KB
lock.c 26KB
printf-parse.c 22KB
tsearch.c 21KB
testHTML.c 21KB
localcharset.c 20KB
relocatable.c 17KB
tjexample.c 15KB
langprefs.c 12KB
l10nflist.c 11KB
localealias.c 10KB
printf.c 10KB
bindtextdom.c 10KB
01_compress_easy.c 9KB
02_decompress.c 9KB
canonicalize.c 8KB
relocatex.c 8KB
version.c 7KB
xpath1.c 6KB
printf-args.c 6KB
finddomain.c 6KB
testXPath.c 6KB
gobjectnotifyqueue.c 5KB
hello.c 5KB
xpath2.c 5KB
04_compress_easy_mt.c 5KB
03_compress_custom.c 5KB
plural-exp.c 4KB
log.c 4KB
textdomain.c 4KB
共 2000 条
- 1
- 2
- 3
- 4
- 5
- 6
- 20
资源评论
Python老吕
- 粉丝: 10w+
- 资源: 28
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- coco.names 文件
- (源码)基于Spring Boot和Vue的房屋租赁管理系统.zip
- (源码)基于Android的饭店点菜系统.zip
- (源码)基于Android平台的权限管理系统.zip
- (源码)基于CC++和wxWidgets框架的LEGO模型火车控制系统.zip
- (源码)基于C语言的操作系统实验项目.zip
- (源码)基于C++的分布式设备配置文件管理系统.zip
- (源码)基于ESP8266和Arduino的HomeMatic水表读数系统.zip
- (源码)基于Django和OpenCV的智能车视频处理系统.zip
- (源码)基于ESP8266的WebDAV服务器与3D打印机管理系统.zip
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功