]> git.saurik.com Git - apple/libc.git/blob - regex/FreeBSD/regex.3.patch
ec526a2ea574b85dc38c139a598bf903dbe8b079
[apple/libc.git] / regex / FreeBSD / regex.3.patch
1 --- regex.3.bsdnew 2009-11-11 11:29:04.000000000 -0800
2 +++ regex.3 2009-11-11 11:29:04.000000000 -0800
3 @@ -37,8 +37,8 @@
4 .Os
5 .Sh NAME
6 .Nm regcomp ,
7 -.Nm regexec ,
8 .Nm regerror ,
9 +.Nm regexec ,
10 .Nm regfree
11 .Nd regular-expression library
12 .Sh LIBRARY
13 @@ -47,20 +47,29 @@
14 .In regex.h
15 .Ft int
16 .Fo regcomp
17 -.Fa "regex_t * restrict preg" "const char * restrict pattern" "int cflags"
18 -.Fc
19 -.Ft int
20 -.Fo regexec
21 -.Fa "const regex_t * restrict preg" "const char * restrict string"
22 -.Fa "size_t nmatch" "regmatch_t pmatch[restrict]" "int eflags"
23 +.Fa "regex_t *restrict preg"
24 +.Fa "const char *restrict pattern"
25 +.Fa "int cflags"
26 .Fc
27 .Ft size_t
28 .Fo regerror
29 -.Fa "int errcode" "const regex_t * restrict preg"
30 -.Fa "char * restrict errbuf" "size_t errbuf_size"
31 +.Fa "int errcode"
32 +.Fa "const regex_t *restrict preg"
33 +.Fa "char *restrict errbuf"
34 +.Fa "size_t errbuf_size"
35 +.Fc
36 +.Ft int
37 +.Fo regexec
38 +.Fa "const regex_t *restrict preg"
39 +.Fa "const char *restrict string"
40 +.Fa "size_t nmatch"
41 +.Fa "regmatch_t pmatch[restrict]"
42 +.Fa "int eflags"
43 .Fc
44 .Ft void
45 -.Fn regfree "regex_t *preg"
46 +.Fo regfree
47 +.Fa "regex_t *preg"
48 +.Fc
49 .Sh DESCRIPTION
50 These routines implement
51 .St -p1003.2
52 @@ -71,12 +80,11 @@ see
53 The
54 .Fn regcomp
55 function
56 -compiles an RE written as a string into an internal form,
57 +compiles an RE, written as a string, into an internal form.
58 .Fn regexec
59 -matches that internal form against a string and reports results,
60 +matches that internal form against a string and reports results.
61 .Fn regerror
62 -transforms error codes from either into human-readable messages,
63 -and
64 +transforms error codes from either into human-readable messages.
65 .Fn regfree
66 frees any dynamically-allocated storage used by the internal form
67 of an RE.