regex.3 (32eef9aeb1f39a1623cea55da147c89abbd5b9a5) | regex.3 (4047df8d249eb931f75bb645dee9761946216fbd) |
---|---|
1.\" Copyright (c) 1992, 1993, 1994 Henry Spencer. 2.\" Copyright (c) 1992, 1993, 1994 3.\" The Regents of the University of California. All rights reserved. 4.\" 5.\" This code is derived from software contributed to Berkeley by 6.\" Henry Spencer. 7.\" 8.\" Redistribution and use in source and binary forms, with or without --- 22 unchanged lines hidden (view full) --- 31.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 32.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 33.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 34.\" SUCH DAMAGE. 35.\" 36.\" @(#)regex.3 8.4 (Berkeley) 3/20/94 37.\" $FreeBSD$ 38.\" | 1.\" Copyright (c) 1992, 1993, 1994 Henry Spencer. 2.\" Copyright (c) 1992, 1993, 1994 3.\" The Regents of the University of California. All rights reserved. 4.\" 5.\" This code is derived from software contributed to Berkeley by 6.\" Henry Spencer. 7.\" 8.\" Redistribution and use in source and binary forms, with or without --- 22 unchanged lines hidden (view full) --- 31.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 32.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 33.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 34.\" SUCH DAMAGE. 35.\" 36.\" @(#)regex.3 8.4 (Berkeley) 3/20/94 37.\" $FreeBSD$ 38.\" |
39.Dd March 20, 1994 | 39.Dd October 2, 2002 |
40.Dt REGEX 3 41.Os 42.Sh NAME 43.Nm regcomp , 44.Nm regexec , 45.Nm regerror , 46.Nm regfree 47.Nd regular-expression library 48.Sh LIBRARY 49.Lb libc 50.Sh SYNOPSIS | 40.Dt REGEX 3 41.Os 42.Sh NAME 43.Nm regcomp , 44.Nm regexec , 45.Nm regerror , 46.Nm regfree 47.Nd regular-expression library 48.Sh LIBRARY 49.Lb libc 50.Sh SYNOPSIS |
51.In sys/types.h | |
52.In regex.h 53.Ft int | 51.In regex.h 52.Ft int |
54.Fn regcomp "regex_t *preg" "const char *pattern" "int cflags" | 53.Fo regcomp 54.Fa "regex_t * restrict preg" "const char * restrict pattern" "int cflags" 55.Fc |
55.Ft int 56.Fo regexec | 56.Ft int 57.Fo regexec |
57.Fa "const regex_t *preg" "const char *string" 58.Fa "size_t nmatch" "regmatch_t pmatch[]" "int eflags" | 58.Fa "const regex_t * restrict preg" "const char * restrict string" 59.Fa "size_t nmatch" "regmatch_t pmatch[restrict]" "int eflags" |
59.Fc 60.Ft size_t 61.Fo regerror | 60.Fc 61.Ft size_t 62.Fo regerror |
62.Fa "int errcode" "const regex_t *preg" 63.Fa "char *errbuf" "size_t errbuf_size" | 63.Fa "int errcode" "const regex_t * restrict preg" 64.Fa "char * restrict errbuf" "size_t errbuf_size" |
64.Fc 65.Ft void 66.Fn regfree "regex_t *preg" 67.Sh DESCRIPTION 68These routines implement 69.St -p1003.2 70regular expressions 71.Pq Do RE Dc Ns s ; --- 630 unchanged lines hidden --- | 65.Fc 66.Ft void 67.Fn regfree "regex_t *preg" 68.Sh DESCRIPTION 69These routines implement 70.St -p1003.2 71regular expressions 72.Pq Do RE Dc Ns s ; --- 630 unchanged lines hidden --- |